<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: manthink</title>
    <description>The latest articles on DEV Community by manthink (@manthink).</description>
    <link>https://dev.to/manthink</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3586413%2F58ca9d10-ab31-4aa2-8a1b-c9a0653ee339.png</url>
      <title>DEV Community: manthink</title>
      <link>https://dev.to/manthink</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manthink"/>
    <language>en</language>
    <item>
      <title>The Full Cost Picture of a LoRaWAN Project: Four Ledgers — Devices, Deployment, Platform, Operations</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Tue, 24 Nov 2026 03:20:12 +0000</pubDate>
      <link>https://dev.to/manthink/the-full-cost-picture-of-a-lorawan-project-four-ledgers-devices-deployment-platform-operations-1a7g</link>
      <guid>https://dev.to/manthink/the-full-cost-picture-of-a-lorawan-project-four-ledgers-devices-deployment-platform-operations-1a7g</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F65vqqmzyfox411ws3cet.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F65vqqmzyfox411ws3cet.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Four installments into the engineering-management series, it is time to tackle the topic everyone cares about and almost nobody writes through: &lt;strong&gt;money&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The last three installments covered discipline — the ledger, acceptance, SOPs. This one does the accounting: where the money goes from kickoff to year five of a LoRaWAN project, which items get underestimated, and which "savings" cost more than they save. This article quotes no specific prices (device prices move too fast with year and volume — a budget template with hardcoded numbers is obsolete in three years). What it provides is &lt;strong&gt;cost structure&lt;/strong&gt;: what each ledger contains, what its proportion tends to be, and where the hidden costs hide. With the structure, you can fill in any year's and any vendor's numbers without gaps.&lt;/p&gt;

&lt;p&gt;The opening conclusion: &lt;strong&gt;the most common budget accident in a LoRaWAN project is not overspending — it is budgeting only "unit price times quantity"&lt;/strong&gt;. The device ledger looks beautiful; the deployment, platform, and operations ledgers are either missing or guessed at one-tenth of the device figure — and the project burns through its total budget in year one.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Ledger One: Devices — Easiest to Count, Easiest to Miscount
&lt;/h2&gt;

&lt;p&gt;The device ledger is the most visible of the four, and it has two classic miscounts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, an end device is not just the device.&lt;/strong&gt; Each installation point's bill of materials includes, beyond the sensor itself: mounting hardware (clamps, screws, seals), cabling and consumables (analog-input designs need wiring; dry contacts need conduit), and the "battery as consumable" nature of battery-powered units — lithium cells last five to ten years and need rolling budget cycles. In practice, terminal installation consumables run 5-15% of the device's purchase price, depending on environment complexity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, gateways amortize by coverage, not by count.&lt;/strong&gt; A gateway's cost significance is not its own price but &lt;strong&gt;its per-device coverage cost&lt;/strong&gt;: one gateway covering two hundred devices versus one covering thirty changes the amortized cost by an order of magnitude. This is why issue 36 insisted "survey before you drill" — what a survey saves is not a signal problem but the money of "buying three more gateways to patch coverage." Indoor and outdoor solutions differ widely (IP67, surge protection, solar-powered outdoor models cost substantially more than indoor units), and the survey determines how many sites must use the outdoor class — &lt;strong&gt;the device ledger and the survey are coupled&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The correct device ledger: terminals (plus consumables) + gateways (plus RF accessories: antennas, feedlines, surge arresters) + gateway installation consumables. RF accessories get forgotten often — one feedline plus an arrester is not much money, but without it, the gateway arrives and cannot be mounted.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Ledger Two: Deployment — The Labor Bulk, Most Often Guessed at "10% of Devices"
&lt;/h2&gt;

&lt;p&gt;The deployment ledger covers everything that turns warehouse stock into online data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Survey and design&lt;/strong&gt;: survey labor and travel. Issue 36 argued the ROI; one more line here: survey cost is a tiny fraction of the total (usually around 1%), and skipping it pays for itself in deployment rework&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Installation&lt;/strong&gt;: working at height, cable runs, power connections, waterproofing. This is the bulk of the ledger — a single installation point takes from half an hour (indoor wall mount, power at hand) to a full day (outdoor tower, new power run). Issue 37 noted "the power plan determines the mounting location"; the cost-side corollary: &lt;strong&gt;the easier the power, the cheaper the install&lt;/strong&gt;, and the electricity a solar design saves is often outweighed by the labor it adds&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commissioning and acceptance&lt;/strong&gt;: onboarding, baseline testing (issue 36's walk test), factory acceptance sampling (issue 40). Acceptance labor belongs in the budget — teams that "do acceptance for free" pay it back double in field rework&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Travel&lt;/strong&gt;: multi-site projects list travel as its own line item — it is the most elastic expense category, and it cannot be managed when hidden inside "installation fees"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The proportion rule: &lt;strong&gt;the more sites and the more scattered, the higher deployment runs relative to devices&lt;/strong&gt;. A three-site project may keep deployment under 20%; forty sites across three cities can see deployment match or exceed the device ledger. For multi-region projects, budget by counting sites and estimating hours per site — never by applying a ratio to device spend.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Ledger Three: Platform — From "Free Software" to Total Cost of Ownership
&lt;/h2&gt;

&lt;p&gt;Platform cost is underestimated most, because so many platforms wear a "free" label. Judge platform cost across three tiers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cloud hosting&lt;/strong&gt;: subscription by device count or message volume. Take the ThinkLink cloud as an example: a free tier covers up to one thousand devices, with subscriptions beyond that; The Things Stack commercial tiers and various PaaS offerings work the same way. Cloud hosting's strength is &lt;strong&gt;linear cost with scale and zero fixed investment&lt;/strong&gt;; its weakness is that egressing data into your own systems puts the pipeline cost of issue 35 on your side&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edge self-hosting&lt;/strong&gt; (ThinkLink TKE class): one x86 server's hardware and rack cost, plus operations labor. Fits industrial scenarios where data cannot leave the plant — the server is a one-time investment, the labor is ongoing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gateway-embedded&lt;/strong&gt; (TKG class): small projects (under a hundred devices) use the gateway's built-in platform, zero extra hardware. Its boundary was covered in issue 23: small local scale, dependent on a single gateway, no high availability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The right way to budget a platform is not comparing "who is free" but computing &lt;strong&gt;five-year TCO&lt;/strong&gt;: subscription or server depreciation, plus one-time integration development (egress, dashboards, alarm integration), plus ongoing operations labor. Many "free" platforms hide their real cost in integration and pipeline work; many "paid" platforms are more transparent and controllable. Issue 15 compared the platform landscape; its selection logic, translated into cost language: &lt;strong&gt;compute the five-year ledger first, then look at the monthly fee&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Ledger Four: Operations — Invisible During Procurement, Matching It by Year Five
&lt;/h2&gt;

&lt;p&gt;Issue 41 turned operations into three tables; this issue turns those tables into money:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spares pool&lt;/strong&gt;: 3-5% of installed volume (issue 40's range) — one-time stocking plus rolling replenishment&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inspection and alarm-response labor&lt;/strong&gt;: three minutes a day looks free; annualized it is a non-trivial slice of one headcount — small projects can share a person; several hundred sites need a dedicated one&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Battery replacement cycles&lt;/strong&gt;: batch battery replacement every five to ten years is the operations ledger's largest predictable expense — schedule it by year at budget time&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update windows&lt;/strong&gt;: the labor of organizing each full-fleet update; issue 41's window discipline prices it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expansion and adjustments&lt;/strong&gt;: added points and coverage patches as the business changes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The counterintuitive rule: &lt;strong&gt;cumulative operations cost over five years commonly approaches or exceeds the initial purchase&lt;/strong&gt;. That is the whole point of TCO — buyers compare device quotes, vendors quote devices plus installation, and both sides avoid the bill that appears in year five. Whoever puts the operations ledger in the proposal first spends year five without the fight.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Four Hidden Costs: On No Quotation, Yet They Always Arrive
&lt;/h2&gt;

&lt;p&gt;Beyond the four ledgers, four cost classes appear on virtually no quotation — and every delivery team has met them:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rework.&lt;/strong&gt; Skipped surveys leading to extra gateways; skipped acceptance leading to field troubleshooting (issue 40's math: a few hundred RMB per site visit, a 5% issue rate means tens of thousands); substandard workmanship failing in the rainy season. Rework's unit cost is two to three times normal work — a second visit carries a completely different cost structure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mixed batches and credential incidents.&lt;/strong&gt; Issue 39's topic: one mistyped AppKey means a device never joins, and the troubleshooting hours dwarf the replacement cost. Credential governance is not security pedantry — it is a cost line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pipeline debt.&lt;/strong&gt; Issue 35: data landing on a platform is not data being usable. Many budgets stop at "data on the platform"; every subsequent need — data in your own system, on a dashboard, in a customer report — becomes a change order. Budget egress, time-series storage, and dashboards inside the platform ledger, and change orders become planned items.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dispute over scope.&lt;/strong&gt; The gap between what the buyer means by "delivered" and what the vendor means is what the project loses. Issue 40 said acceptance criteria go into the contract; this issue's version: &lt;strong&gt;the boundary of each of the four ledgers goes into the contract&lt;/strong&gt; — device list, site list, platform feature scope, operations response tiers, each with its own amount. No boundary, no dispute.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. What Not to Cut, and What Can Wait
&lt;/h2&gt;

&lt;p&gt;Budgets get cut; the skill is knowing where cutting does not damage the project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Four lines you cannot cut:&lt;/strong&gt; the survey (lowest share, highest leverage); factory acceptance sampling (issue 40's entire argument); the spares pool (without spares, availability promises are empty — issue 38 showed MTTR moves availability as much as MTBF); credential production-line governance (issue 39 — saving here produces whole-batch incidents).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three lines that can wait:&lt;/strong&gt; dashboard aesthetics (once data is visible, beauty is iteration); large-scale high-availability architecture (issue 38's mutual-backup design can be designed now and built in phases, by business criticality); over-featured device selection (the per-unit premium paid for "might need it later" times a thousand units is real money — select for current needs and switch generations when expansion actually arrives).&lt;/p&gt;

&lt;p&gt;The one-line test: &lt;strong&gt;money whose savings damage another ledger cannot be cut; money that only affects its own ledger can be phased.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. The Budget Template: One Table, Four Ledgers
&lt;/h2&gt;

&lt;p&gt;Everything above, compressed into a budgeting checklist — each row maps to a contract line item:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line item&lt;/th&gt;
&lt;th&gt;Contents&lt;/th&gt;
&lt;th&gt;Commonly missed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Devices&lt;/td&gt;
&lt;td&gt;Terminals + install consumables; gateways + RF accessories (antenna/feedline/arrester)&lt;/td&gt;
&lt;td&gt;Batteries as rolling consumables; RF accessories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployment&lt;/td&gt;
&lt;td&gt;Survey, installation, commissioning and acceptance, travel&lt;/td&gt;
&lt;td&gt;Acceptance labor; multi-site travel as its own line&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Platform&lt;/td&gt;
&lt;td&gt;Subscription or server; integration development; dashboard and alarm integration&lt;/td&gt;
&lt;td&gt;Data egress and pipeline; five-year TCO framing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Operations&lt;/td&gt;
&lt;td&gt;Spares 3-5%, inspection labor, battery cycles, update windows, expansion&lt;/td&gt;
&lt;td&gt;Battery replacement year scheduling; five-year cumulative comparison&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The budgeting order matters too: survey first to fix the sites, then estimate deployment per site, then size gateways by coverage, then fill in platform and operations — &lt;strong&gt;work backward from the field, not downward from a unit price&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;With four ledgers computed, the project has a financial skeleton: quotes survive comparison, changes negotiate cleanly, and year five's bill does not appear out of nowhere. The engineering-management series now covers the four spots where "rule by person" most often blurs the project: ledger, acceptance, SOP, and budget. Next issue we switch cuts and return to the developer's view, walking the end-to-end development flow from requirements to mass production.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Note: the share ranges quoted (consumables 5-15%, spares 3-5%) are industry practice values that vary with project scale and environment; platform free tiers and deployment forms follow each vendor's current documentation (ThinkLink cloud free tier, TKE edge deployment, TKG gateway-embedded forms per official ManThink documentation). This article is a cost-structure reference, not a quotation basis.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>infrastructure</category>
      <category>iot</category>
      <category>management</category>
    </item>
    <item>
      <title>LoRaWAN Operations SOP: After Go-Live, the Network Lives on Process</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Mon, 23 Nov 2026 03:59:00 +0000</pubDate>
      <link>https://dev.to/manthink/lorawan-operations-sop-after-go-live-the-network-lives-on-process-4pni</link>
      <guid>https://dev.to/manthink/lorawan-operations-sop-after-go-live-the-network-lives-on-process-4pni</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl076on7jqwiowz1p08kl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl076on7jqwiowz1p08kl.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The last few issues walked the delivery chain end to end: the production line provisions credentials, the batch manifest ships with the goods, factory acceptance guards the gate, and accepted stock enters the ledger. At that point the devices go on-site, the project signs off — and many teams consider the project "closed."&lt;/p&gt;

&lt;p&gt;But a LoRaWAN network typically lives five years or more. Over those years, gateways lose power, batteries deplete, firmware needs updating, and staff rotate. &lt;strong&gt;What you hand over on delivery day is not a set of devices — it is a decade of responsibility&lt;/strong&gt; — and whether that responsibility is held depends not on having experts on the team, but on having a process that does not depend on experts.&lt;/p&gt;

&lt;p&gt;Issue 28 covered troubleshooting: the technical work of "how to fix it when it breaks." This issue covers its upstream: &lt;strong&gt;who does what, when, and against what standard — before the problem happens&lt;/strong&gt;. That is the operations SOP (standard operating procedure), and why it should be written before go-live, not after the first incident.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. First, Tell Them Apart: Troubleshooting Is Technique, Operations Is Policy
&lt;/h2&gt;

&lt;p&gt;Troubleshooting and operations are often conflated, but they run on completely different logic:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Troubleshooting&lt;/strong&gt; is event-driven: a device goes offline, diagnose, fix, restore. The protagonist is technical skill; the output is "it works again"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operations&lt;/strong&gt; is time-driven: what to check daily, weekly, monthly; who responds to an alarm, how fast, and whom to escalate to. The protagonist is process discipline; the output is "problems intercepted before they become incidents"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run a network on troubleshooting alone and the state is "fix only when broken" — yet the most expensive failures in a LoRaWAN project are precisely the ones that throw no error: a gateway quietly offline for three days with nobody noticing (issue 22 covered that loss-of-contact is detected as last activity plus twice the heartbeat period — but &lt;strong&gt;the platform does the detecting; a human does the noticing&lt;/strong&gt;), battery voltage sliding down for half a year until a mass failure, RSSI/SNR baselines drifting seasonally without anyone watching. These are not faults; they are &lt;strong&gt;trends&lt;/strong&gt;, and trends can only be captured by periodic actions.&lt;/p&gt;

&lt;p&gt;An operations SOP is therefore three tables: &lt;strong&gt;the inspection schedule, the alarm response table, and the change window table&lt;/strong&gt;. One at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The Inspection Schedule: Three Minutes a Day, Half a Day a Quarter
&lt;/h2&gt;

&lt;p&gt;Inspection frequency is derived from how fast a problem grows from seed to blowup. Battery voltage sliding from 3.6 V to the failure threshold takes months — daily checks are pointless. Gateway power loss zeroes a coverage area's data within minutes — monthly checks are too late.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Daily (3 minutes, automatable)&lt;/strong&gt;: scan the dashboard for four numbers — gateways online, yesterday's total uplink packets, open alarms, device online rate. All four are standard on a ThinkLink dashboard. The real questions are &lt;strong&gt;who looks, and where do they note it&lt;/strong&gt;. Fix a responsible person; record only anomalies, not normal days — a process that demands logs for "everything fine" will not survive a month.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weekly (30 minutes)&lt;/strong&gt;: read trends, not snapshots. Compare the last four weeks of uplink volume; a single site declining more than 20% deserves a physical antenna check. Scan alarm history for "the device with the most repeated alarms" — either it has a hardware problem or its threshold is misconfigured. Issue 22 covered deduplication; a wrong threshold is the leading cause of alarm fatigue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Monthly (half a day)&lt;/strong&gt;: three things. First, the battery-voltage distribution across battery-powered devices; list everything within 5% of the threshold and schedule the next site visit. Second, firmware version distribution — how many units still sit on old versions decides whether the next update window opens. Third, ledger reconciliation: does the platform's device count match the ledger (issue 39's system closes its loop here — were retired devices removed? Newly installed ones imported?)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quarterly (half a day to a day)&lt;/strong&gt;: physical actions on sampled sites. Antenna tightening and waterproofing checks (the installation standards from issues 26 and 37 become periodic actions here), gateway power and grounding visual inspection, RSSI/SNR spot checks against the commissioning baseline — drift beyond 10 dB demands an environment investigation (new buildings, new interference sources). The quarterly visit is also the slot for a &lt;strong&gt;fault drill&lt;/strong&gt;: pull power on one gateway and verify that the alarm chain, the spare-swap process, and the recovery time all meet the plan. Issue 38 said drills are part of redundancy acceptance; the quarterly drill is its operations-period continuation.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The Alarm Response Table: Severity, Deadlines, Escalation
&lt;/h2&gt;

&lt;p&gt;An alarm is not "sound = act." An alarm system without severity levels, deadlines, and escalation paths degrades within three months into one that nobody reads. The response table answers three questions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What severity is this alarm?&lt;/strong&gt; Map the platform's four alarm levels (issue 22 anchor) onto response actions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Critical (a whole area offline, gateway down)&lt;/strong&gt;: respond immediately. A gateway offline means its entire coverage area's data is zeroed. Depending on project importance, response within 15 to 30 minutes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Major (single device lost, low battery)&lt;/strong&gt;: handle on shift; confirm the cause within 4 hours, dispose within 24 hours&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warning (data anomaly, drift)&lt;/strong&gt;: goes onto the weekly checklist, no immediate response&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Info&lt;/strong&gt;: record only, no action&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Who owns it once it fires?&lt;/strong&gt; Each level has a named on-shift role and an escalation path: if the on-shift person cannot close it within 30 minutes, escalate to the project lead; if a field action is needed, escalate to the installation contractor. &lt;strong&gt;Write the contacts and deadlines into the table — never rely on "ask the group chat when it happens"&lt;/strong&gt;. The platform's built-in notifications are email and WeCom only (issue 22 anchor); the last hop of this chain is always a specific person.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What remains after it is handled?&lt;/strong&gt; Three lines per response: alarm time, root cause, action taken. Summarize quarterly; recurring root causes are next quarter's process fixes. The response log is the only mandatory record in this system — it is the raw material for retrospectives.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The Change Window Table: Updates and Config Edits Are Never "While We're At It"
&lt;/h2&gt;

&lt;p&gt;Two kinds of change occur after go-live: firmware updates and configuration changes. Their shared first principle is &lt;strong&gt;window, contingency plan, rollback&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Firmware update windows&lt;/strong&gt;: issue 27 covered how A/B partitioning makes failed updates recoverable, and issue 34 did the FUOTA time math. At the operations layer these capabilities become three disciplines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Updates happen in windows only, never "while we're at it". Pick a business low-peak window (say 2 to 5 a.m., or a weekend), and notify stakeholders a week ahead&lt;/li&gt;
&lt;li&gt;Ring rollout first, full fleet second: update 5-10% of devices first (including the worst link environments), watch for 48 hours, then go full. The logic is identical to issue 39's gated rollout&lt;/li&gt;
&lt;li&gt;Watch the completion rate inside the window: FUOTA batch delivery is not fire-and-forget. Monitor the completion curve during the window and work stalled batches through issue 34's troubleshooting path&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Configuration changes&lt;/strong&gt;: decoder scripts, trigger rules, forwarder configs. These are more dangerous than firmware updates because &lt;strong&gt;they have no rollback mechanism&lt;/strong&gt; — a broken script keeps corrupting data until someone notices. Three disciplines: export the current config before the change (that is your rollback); two-person review — the person making the change does not approve it; validate the new script against one known historical packet after the change to confirm the mapping did not shift.&lt;/p&gt;

&lt;p&gt;One more trap that masquerades as operations: &lt;strong&gt;ad-hoc edits by whoever is around&lt;/strong&gt;. On-site: "just tweak that threshold for me." Five minutes, and three months later nobody knows why the rule looks like that. Every change goes into the change log — what changed, who approved, why. The log lives in the ledger, following the device.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Spares and Field Disposal: Swapping a Device Is the Most Frequent Field Action
&lt;/h2&gt;

&lt;p&gt;Issue 40 sized the spares pool at 3-5% of installed volume. Here is how spares get used — the &lt;strong&gt;device swap procedure&lt;/strong&gt;, the highest-frequency field action of the operations period, and the moment issue 39's "history follows the asset" design pays out:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A device fails on site: first mark it "under repair" on the platform (suspends its alarms, so it stops generating noise)&lt;/li&gt;
&lt;li&gt;Pull a spare from the pool, scan its code to confirm the DevEUI — the spares ledger confirms it is in stock and unassigned&lt;/li&gt;
&lt;li&gt;Swap on site, power on, confirm the new device joins&lt;/li&gt;
&lt;li&gt;On the platform, attach the new device to the original asset location; history and thresholds continue from the asset position. The failed device goes to repair archive — fix it if fixable, then return it to the spares pool&lt;/li&gt;
&lt;li&gt;Update the ledger: failure cause, swap time, old and new device IDs&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Five steps, and the charts never break and the ledger never falls behind. The two steps most often skipped are 1 and 4 — skipping the repair mark means alarms keep firing; skipping the asset attachment means history breaks. The whole value of an SOP is turning actions that "a smart person would naturally do" into a checklist "anyone can execute."&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Handover and Documentation: Make It Readable for Whoever Comes Next
&lt;/h2&gt;

&lt;p&gt;Operations periods run for years, and staff will rotate. Handover cost depends almost entirely on documentation — and operations documentation does not need to be thick, it needs to &lt;strong&gt;match the field&lt;/strong&gt;. The minimal set is four documents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Network topology and asset list&lt;/strong&gt;: which sites, which gateways, covering what — issue 39's ledger is the draft&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The SOP itself&lt;/strong&gt;: the inspection schedule, alarm response table, change window table, and the five-step swap — the four tables from this issue, one page each&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Change and alarm-disposal logs&lt;/strong&gt;: no reformatting needed; platform exports plus an archiving habit. What matters is that the chain never breaks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supplier and contract index&lt;/strong&gt;: who supplied the gateways, when maintenance expires, where spares come from — issue 40's acceptance archive is page one&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The handover test is simple: the incoming person &lt;strong&gt;runs one week of inspections independently, closes one alarm independently, swaps one device independently&lt;/strong&gt; — three tasks without asking the predecessor. Handover complete.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Retrospective and Availability: Manage the Network with Numbers, Not Feelings
&lt;/h2&gt;

&lt;p&gt;Issue 38 did the availability math: 99% means 87.6 hours of downtime a year. In the operations period the formula is not a quotation line — it is &lt;strong&gt;computed every quarter&lt;/strong&gt;: downtime hours, incident count, longest single outage, compared with last quarter and with the SLA commitment.&lt;/p&gt;

&lt;p&gt;The quarterly retrospective answers three fixed questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What was this quarter's most expensive incident? (Not the most technically severe — the one with the largest business impact.) Can its root cause become an SOP clause?&lt;/li&gt;
&lt;li&gt;Did any alarm response exceed its deadline? Was the bottleneck staffing, process, or permissions?&lt;/li&gt;
&lt;li&gt;What did inspections find that the checklist did not cover? Does the checklist gain a line?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The retrospective's output must land in documents: which SOP clauses changed, where the records live. A retrospective without documents is, three months later, a meeting that never happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. A One-Page Operations SOP Template
&lt;/h2&gt;

&lt;p&gt;Everything above, compressed into a page you can copy:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inspection schedule&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cycle&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Actions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Daily&lt;/td&gt;
&lt;td&gt;3 min&lt;/td&gt;
&lt;td&gt;Gateways online, total uplink, open alarms, device online rate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Weekly&lt;/td&gt;
&lt;td&gt;30 min&lt;/td&gt;
&lt;td&gt;Four-week uplink trend, top alarm-frequency devices&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monthly&lt;/td&gt;
&lt;td&gt;Half day&lt;/td&gt;
&lt;td&gt;Battery voltage distribution, firmware version distribution, ledger reconciliation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quarterly&lt;/td&gt;
&lt;td&gt;Half day+&lt;/td&gt;
&lt;td&gt;Antenna tightening/waterproofing, power and grounding check, RF baseline comparison, fault drill&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Alarm response table&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Level&lt;/th&gt;
&lt;th&gt;Typical scenario&lt;/th&gt;
&lt;th&gt;Response deadline&lt;/th&gt;
&lt;th&gt;Escalation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Critical&lt;/td&gt;
&lt;td&gt;Area-wide loss, gateway offline&lt;/td&gt;
&lt;td&gt;15-30 min&lt;/td&gt;
&lt;td&gt;On-shift → project lead → contractor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Major&lt;/td&gt;
&lt;td&gt;Single device lost, low battery&lt;/td&gt;
&lt;td&gt;Confirm in 4 h&lt;/td&gt;
&lt;td&gt;On-shift handles; disposal in 24 h&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warning&lt;/td&gt;
&lt;td&gt;Data drift, anomaly&lt;/td&gt;
&lt;td&gt;Weekly checklist&lt;/td&gt;
&lt;td&gt;No immediate response&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Info&lt;/td&gt;
&lt;td&gt;Informational&lt;/td&gt;
&lt;td&gt;Record only&lt;/td&gt;
&lt;td&gt;No action&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Change window table&lt;/strong&gt;: firmware updates in windows, 5-10% ring first with 48-hour observation, completion rate monitored; config changes export-first, two-person review, historical-packet validation; every change into the change log.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Five-step device swap&lt;/strong&gt;: mark under repair → scan and confirm the spare → swap and confirm join → attach to the asset position → update the ledger.&lt;/p&gt;

&lt;p&gt;An SOP is not written for auditors; it is written for yourself three months from now. On go-live day, the best state is not "everything normal" — it is that &lt;strong&gt;when an anomaly occurs, everyone knows what they must do within how many minutes&lt;/strong&gt;. That certainty does not come from people; it comes from tables. Next issue we switch angles and cover the end-to-end development process from design to delivery.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Note: the four alarm levels, loss-of-contact rule (last activity plus twice the heartbeat period), and built-in notification channels (email and WeCom) are anchored in ThinkLink platform documentation. Sampling ratios and response deadlines are industry practice values — tune them to each project's SLA.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>infrastructure</category>
      <category>iot</category>
      <category>networking</category>
    </item>
    <item>
      <title>LoRaWAN Gateway Site Survey: Prove It Works Before You Drill</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Mon, 16 Nov 2026 03:45:22 +0000</pubDate>
      <link>https://dev.to/manthink/lorawan-gateway-site-survey-prove-it-works-before-you-drill-1ie1</link>
      <guid>https://dev.to/manthink/lorawan-gateway-site-survey-prove-it-works-before-you-drill-1ie1</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcc1aymgmv259084z3kkp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcc1aymgmv259084z3kkp.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The classic rework scene: budget approved, hardware delivered, brackets drilled and mounted — power on, and the basement devices can't connect, the glass-curtain building drops packets all day. Taking it down and remounting doubles the labor cost and halves customer confidence.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;With RF, "find out after installation" usually means too late. A site survey is the only step that converts "it should work" into "it measurably works" before construction begins. This article covers how to do one properly: calculate first, then measure, then decide placement. Antenna selection was issue 26; post-installation troubleshooting was issue 28 — this one covers the decision in between that decides everything: &lt;strong&gt;where to put it&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Calculate first: the paper link budget
&lt;/h2&gt;

&lt;p&gt;Walk the numbers on paper before anything goes on a roof. LoRa's link budget is generous (typically around 155 dB), but indoor losses deduct quickly. The arithmetic:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Available margin = link budget − path loss − Σ penetration losses − installation margin&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Estimate path loss with the free-space formula (add 6 dB per doubling of distance; indoors, redo the estimate with a propagation exponent around 4); sum penetration losses wall by wall using the table below; the installation margin covers weather, humidity, foot traffic, and device reorientation. &lt;strong&gt;The hard rule: any location with less than 10 dB remaining is treated as unreliable&lt;/strong&gt; — not "might fail," but "will fail, we just don't know when."&lt;/p&gt;

&lt;p&gt;A common example: a terminal on the third-floor office, gateway candidate in the first-floor telecom room. Three concrete floor slabs (25 dB each) plus two brick walls (12 dB each) puts penetration above 100 dB — the proposal dies on paper. No site visit needed to test "maybe it works."&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The cheat sheet: how much each wall costs
&lt;/h2&gt;

&lt;p&gt;Additional losses by material (near 868 MHz, cross-referenced field values; expect ±5 dB per building):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Obstacle&lt;/th&gt;
&lt;th&gt;Additional loss&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Drywall / light partitions&lt;/td&gt;
&lt;td&gt;3–6 dB&lt;/td&gt;
&lt;td&gt;Minor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Brick wall (24 cm)&lt;/td&gt;
&lt;td&gt;10–15 dB&lt;/td&gt;
&lt;td&gt;Most common&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reinforced concrete wall (20 cm)&lt;/td&gt;
&lt;td&gt;18–25 dB&lt;/td&gt;
&lt;td&gt;Load-bearing, heavy loss&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concrete floor slab&lt;/td&gt;
&lt;td&gt;25–30 dB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;The cross-floor killer&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Metal doors / racking&lt;/td&gt;
&lt;td&gt;25–35 dB&lt;/td&gt;
&lt;td&gt;Effectively shielding&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coated glass (Low-E curtain wall)&lt;/td&gt;
&lt;td&gt;20–30 dB&lt;/td&gt;
&lt;td&gt;Most overlooked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Human body (close range)&lt;/td&gt;
&lt;td&gt;8–12 dB&lt;/td&gt;
&lt;td&gt;Mandatory for wearables&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The most valuable word in this table is "coated." Curtain-wall glass in modern office buildings carries a metallic thermal coating — to RF it is effectively a metal mesh. The building looks transparent; the signal doesn't get in. Asking the facility manager one question — "is the glass Low-E?" — saves ten site visits.&lt;/p&gt;

&lt;p&gt;The same logic applies vertically: budget cross-floor links at 25 dB per slab, minimum. From basement level one to the third floor, five slabs — out on paper. The answer to deep indoor coverage is never "a more powerful gateway." It is &lt;strong&gt;more gateways, each penetrating fewer walls&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Then measure: the five-step survey
&lt;/h2&gt;

&lt;p&gt;The paper pass only eliminates obviously unfeasible designs; final placement comes from measurement. Five steps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step one: desk survey.&lt;/strong&gt; Satellite imagery for the building layout; mark candidate locations; confirm three things with the facility manager — power availability, backhaul conditions (how far the Ethernet runs, what the 4G signal looks like), and access rights to rooftops and telecom rooms. A location without power and backhaul scores zero no matter how good the RF is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step two: temporary mounting.&lt;/strong&gt; Set up a gateway at each candidate location on a pole or tripod, as close as possible to the final mounting height — the antenna issue's conclusion still holds: &lt;strong&gt;height beats gain&lt;/strong&gt;. Raising the same gateway two meters routinely outperforms an antenna ten times the price.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step three: the walk test.&lt;/strong&gt; Carry an off-the-shelf terminal (a standard temperature or battery-reporting node works) along the planned device locations, pausing at representative points to log RSSI and SNR. The platform's real-time data page does the recording: every uplink shows the received signal quality at the gateway side; photograph each point and the survey data has provenance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step four: interpreting the numbers.&lt;/strong&gt; Three thresholds: RSSI below −120 dBm is the warning zone; SNR approaching the demodulation limits at low data rates (−20 dB at SF11, −7.5 dB at SF12) means one fade from packet loss; and &lt;strong&gt;check uplink and downlink separately&lt;/strong&gt; — a working uplink does not guarantee a working downlink, because gateway downlink power is regulator-capped (14 dBm EIRP on EU868 downlink). Many "uplink full bars, downlink lost" projects die on exactly that line. Confirm ADR convergence at every point during the walk test; do not stop at first join.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step five: the report.&lt;/strong&gt; Placement decision, per-point RSSI/SNR records, photos, and the paper budget, assembled into one survey report. Recommend attaching it to the contract — later coverage disputes get settled with data, not with recollections of "someone said three kilometers."&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Five placement principles
&lt;/h2&gt;

&lt;p&gt;Once measurements are in, converge the decision with five rules:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Height first.&lt;/strong&gt; Under equal conditions, raising the mounting position is always the cheapest performance gain;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Planar center.&lt;/strong&gt; Place the gateway near the geometric center of the coverage area so the farthest terminals penetrate fewer walls;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Avoid metal and coatings.&lt;/strong&gt; Face the antenna toward open space; a metal wall behind it halves the coverage;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Power and backhaul before RF.&lt;/strong&gt; A location that passes the radio test but can't get power or a cable is out — surveys most often get this priority backwards;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Leave a maintenance path.&lt;/strong&gt; The person swapping the gateway in three years is not the person climbing today.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  5. Three common misjudgments
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Misjudgment one: good RSSI means a good network.&lt;/strong&gt; Issue 28 documented the real case: RF survey green across the board, random packet loss six months after launch. RSSI is only physical-layer reception strength. ADR state, downlink windows, and ACK retransmissions are protocol-layer indicators — read them during the walk test, not after go-live.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Misjudgment two: one test represents the whole year.&lt;/strong&gt; Seasonal vegetation (outdoors), HVAC ducting and occupancy density (indoors), and device reorientation all consume margin at the 5 dB level. That is why the paper budget keeps a 10 dB hard line — one sunny walk test cannot measure the rainy season.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Misjudgment three: budgeting with "maximum range."&lt;/strong&gt; The vendor's fifteen kilometers is open-field line-of-sight at the lowest data rate. Urban coverage is typically estimated within a kilometer or two; indoor coverage is estimated in &lt;strong&gt;walls, not meters&lt;/strong&gt;. The budgeting unit should be "margin at the worst point" from day one, never "average distance."&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;A survey costs little — one gateway, one terminal, half a day of labor. Rework costs a lot — disassembly, downtime, and customer trust. Three things worth taking away: the 10 dB margin hard line, the Low-E glass question, and testing uplink and downlink separately.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This is issue 36 of the LoRaWAN series. Antenna gain and mounting: issue 26. Protocol-layer troubleshooting: issue 28. Link budget and physical-layer parameters: the dedicated LoRa PHY article. Penetration-loss figures are cross-referenced field values; verify against an actual walk test per building. This article involves no USD amounts and no currency conversion.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>hardware</category>
      <category>infrastructure</category>
      <category>iot</category>
    </item>
    <item>
      <title>The LoRaWAN Data Pipeline in Three Stages: Egress, Ingest, Dashboard</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Fri, 13 Nov 2026 08:24:01 +0000</pubDate>
      <link>https://dev.to/manthink/the-lorawan-data-pipeline-in-three-stages-egress-ingest-dashboard-42kl</link>
      <guid>https://dev.to/manthink/the-lorawan-data-pipeline-in-three-stages-egress-ingest-dashboard-42kl</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxgeq9not7vvymsuc4lth.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxgeq9not7vvymsuc4lth.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A familiar project milestone: devices are joined, decoding is configured, and real-time values show up on the platform. Then the customer asks one question — "Can you export the temperature curve for the last three months?" The project stalls right there.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Data landing on a platform is not the same as data being usable. This article covers the road after that moment: how data leaves the platform, which database it lands in, and how it becomes a dashboard someone actually looks at. The previous issue (FUOTA) was about "upgrading device firmware"; this one is about "not wasting the data your devices report."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Draw the boundary first.&lt;/strong&gt; From device to dashboard, data passes through three stages:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;th&gt;Who does it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Egress&lt;/td&gt;
&lt;td&gt;The platform pushes structured data outward&lt;/td&gt;
&lt;td&gt;MQTT forwarder / API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ingest&lt;/td&gt;
&lt;td&gt;Data lands as time series&lt;/td&gt;
&lt;td&gt;Time-series database&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dashboard&lt;/td&gt;
&lt;td&gt;Data becomes curves, reports, alert views&lt;/td&gt;
&lt;td&gt;Grafana or a custom frontend&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Issue 25 covered the configuration details of egress (how to write forwardScript, which topics to subscribe to); this article connects all three stages, with the emphasis on the last two — the stages that non-developers rarely think about, and that everyone trips over the first time they build one.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Egress: know where responsibility transfers
&lt;/h2&gt;

&lt;p&gt;ThinkLink has three data exits, mapped to three use cases.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Path one: built-in historical data.&lt;/strong&gt; ThinkLink's historical data store is built on TimescaleDB — device telemetry lands as time series, and the web UI queries per-device history directly. Two details are easy to miss. First, the query range and the database retention policy are two independent conditions: moving the query start date earlier does not recover data already cleaned up by the retention policy. Second, historical data contains telemetry (business readings without the PARA prefix), while parameter echoes (configuration fields with PARA) rarely change — parameters only update after a configuration command is issued and answered. A flat parameter line is normal, not a broken feed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Path two: API pull.&lt;/strong&gt; Good for low-frequency reconciliation — a scheduled script pulls increments every hour into your own system. Fine at small scale; inefficient as polling at large scale.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Path three: the MQTT forwarder.&lt;/strong&gt; This is the right path when volume matters. ThinkLink pushes decoded telemetry to a third-party MQTT broker, with three subscription topics matching three data shapes: decoded thing-model telemetry, decrypted raw LoRaWAN uplinks, and complete uplink messages after multi-gateway aggregation. The organization-account placeholder in the topic must be replaced with the real account — the most common first-day error in new projects.&lt;/p&gt;

&lt;p&gt;Two forwarder rules belong in every project document:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A forwardScript returning null drops the message.&lt;/strong&gt; The script is a filter, not a replay buffer — null-returned messages are gone at the egress point, no cache, no replay.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The forwarder does not guarantee delivery.&lt;/strong&gt; Messages during a broker outage are not queued for you.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Together these mean: &lt;strong&gt;the egress point is the responsibility transfer point.&lt;/strong&gt; Once a message leaves the platform, landing, buffering, and retrying are all your pipeline's job. Many data-loss incidents trace back to the assumption that "the platform will buffer for me" — when in fact nobody owns that segment.&lt;/p&gt;

&lt;p&gt;One more note on why this is "the right path": since 2.00.066, ThinkLink removed its built-in third-party platform integrations. The architecture for external data consumption is broker plus forwarder — there is no third shortcut.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Ingest: calculate cardinality before choosing a database
&lt;/h2&gt;

&lt;p&gt;Once data exits, where does it land? A general relational database holds up to a few hundred thousand rows, but device data has a distinctive access pattern — scan by time range, filter by device, almost never update — which is exactly the shape a time-series database optimizes for. Before choosing one, calculate a number — &lt;strong&gt;cardinality&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Cardinality = number of devices × metrics per device × tag combinations&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;100 devices × 5 metrics × 3 tag dimensions (line, zone, type) = 1,500 series. This number decides your write and query experience for the next two years, and it does so &lt;strong&gt;exponentially&lt;/strong&gt;: every time series maintains its own metadata, so doubling cardinality doubles index and memory overhead.&lt;/p&gt;

&lt;p&gt;Choose by three questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Question one: write throughput.&lt;/strong&gt; LoRaWAN devices report slowly (typically one message every few minutes), but note that ingestion is never row-by-row — messages from the forwarder get batched in your pipeline. Community experience figures (hardware- and configuration-dependent; order of magnitude only): InfluxDB roughly 100k–300k points/s on one node, TimescaleDB roughly 100k–200k rows/s, TDengine roughly 500k–1M points/s. For almost any LoRaWAN project, all three exceed requirements by a wide margin — your bottleneck will almost never be database writes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Question two: cardinality tolerance.&lt;/strong&gt; This is the real fork among the three. InfluxDB 1.x/2.x's time-series index has a well-known weakness at high cardinality: at the million-series level, writes slow down and memory tightens; the documented ceiling sits near 30 million series, and series keys live in memory across all time — keys for devices retired years ago still occupy the index. InfluxDB 3.0 moved to a Parquet foundation and improves the situation, but the ecosystem (Flux scripts, Grafana plugins) is still migrating. TimescaleDB rides PostgreSQL's B-trees, handles high cardinality well, and lets you JOIN sensor data with business tables in plain SQL. TDengine uses a super-table plus sub-table model — one sub-table per device — that fits IoT naturally, with high compression as a bonus.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Question three: team and ecosystem.&lt;/strong&gt; Team speaks SQL and already runs PostgreSQL — TimescaleDB is near-zero migration cost. Sovereign-stack requirements or extreme compression — TDengine. Just monitoring curves — InfluxDB works, but keep the device count in mind; past a few thousand devices, evaluate cardinality seriously.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The most expensive data-model mistake: putting mutable values into tags.&lt;/strong&gt; The design rule is one sentence — &lt;strong&gt;dimensions you filter by go into tags (device ID, zone, line); values that change over time go into fields (temperature, battery, RSSI)&lt;/strong&gt;. People stuff humidity into tags to save a schema decision; a few thousand devices later, series counts explode past a million, queries degrade, and the fix is rebuilding the database. Tags are index keys; fields are the data itself. Swap them and you build your own cardinality bomb.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two mandatory operational items&lt;/strong&gt;: batched writes (batch size around 5,000, timeout 200 ms, gzip on — writing one point per request is the most common self-inflicted wound), and retention plus downsampling (keep raw data 90 days, then roll it up to hourly averages, minima and maxima — old data shrinks from one row per minute to one per hour, cutting storage cost by an order of magnitude. Skip downsampling and both query latency and the disk bill will teach you the lesson three months in).&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Dashboard: Grafana is not the only answer, but the division of labor matters
&lt;/h2&gt;

&lt;p&gt;Once data is in the database, the dashboard layer has three options in ascending cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The platform's own pages.&lt;/strong&gt; Per-device history curves, live values, alert states — already built. For device debugging and ops views of single points, this is the fastest path; do not rebuild it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grafana.&lt;/strong&gt; Mature data-source plugins for all three databases; connect and draw. The right tool for &lt;strong&gt;cross-device business views&lt;/strong&gt; — average temperature along a production line, battery distribution across a campus, daily water-consumption trends for a group of meters. Grafana's value lies in template variables (a dropdown to switch devices) and alert panels, not in per-device curves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A custom frontend.&lt;/strong&gt; Only worth it when the dashboard goes to the end customer's operations staff and must embed into their business system. Budget from "one experienced frontend developer for two months"; most real requirements are covered by Grafana in a week.&lt;/p&gt;

&lt;p&gt;One commonly missed division: &lt;strong&gt;do not duplicate alerting between the platform and the dashboard&lt;/strong&gt;. Platform-side trigger rules (issue 22) own device-level real-time alerts — threshold crossed, push to email and enterprise messaging. Grafana alerts own business-level trend alerts — "line 3's weekly average temperature has been climbing for two weeks," the kind of judgment that needs an aggregate query. Build the same threshold alert in both, and ops will receive duplicate notifications and learn to ignore them.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Reliability: where data actually gets lost
&lt;/h2&gt;

&lt;p&gt;Across the three stages, there are three gaps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap one: the device side.&lt;/strong&gt; Failed uplinks are retried by the device (confirmed uplinks), covered by the protocol. But Class A devices depend on receive windows, and loss on weak-signal devices belongs in the troubleshooting funnel from issue 28.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap two: the egress point.&lt;/strong&gt; As established, the forwarder does not buffer. Mitigation: put a broker with persistent sessions in the egress path (EMQX with persistent sessions and QoS 1), so messages accumulate in the broker while the ingestion side is offline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gap three: the ingestion side.&lt;/strong&gt; Write retries need an upper bound and dead-letter handling — one malformed record crashing the consumer in a loop hurts far more than a few lost points.&lt;/p&gt;

&lt;p&gt;For small projects (a few dozen devices, dashboards for internal ops only), the whole chain can stay minimal: forwarder straight into a single-node InfluxDB, one Grafana board, no buffering, no dual writes — an hour of work. But the moment data is part of a customer deliverable or feeds reconciliation, gaps two and three must be closed — data lost there is data customers will ask about by contract.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Boundaries and decision checklist
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Build the pipeline (egress → time-series DB → dashboard) when&lt;/strong&gt;: data is viewed by customers or building owners; you need cross-device aggregation; compliance or audit requires data inside your own domain; the platform's views cannot express your business logic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The platform's pages suffice when&lt;/strong&gt;: you are debugging and operating single devices; device count is small with no external deliverable; nobody on the team can maintain a database — self-hosting a time-series DB is not free; backups, upgrades, and disk monitoring are ongoing costs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three don'ts&lt;/strong&gt;: don't put mutable values in tags; don't write point-by-point; don't duplicate the same alert class on both platform and dashboard.&lt;/p&gt;

&lt;p&gt;Back to the opening question: "Can you export the last three months of temperature?" — the answer was decided by how the retention policy was configured on day one, not by whatever tool you use to dig afterward. A data pipeline is a day-one design. Retrofitting one recovers nothing but lessons.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This is issue 35 of the LoRaWAN series. Egress configuration details: issue 25 (MQTT forwarder). Platform alerting: issue 22. Data-quality troubleshooting: issue 28. Third-party performance figures come from community benchmarks and vendor documentation; treat magnitudes as selection guidance and run a POC on your own data shape before production. This article involves no USD amounts and no currency conversion.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backend</category>
      <category>database</category>
      <category>infrastructure</category>
      <category>iot</category>
    </item>
    <item>
      <title>LoRaWAN Goes to Orbit: NTN Satellite Direct-to-Device Explained</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Tue, 10 Nov 2026 07:21:16 +0000</pubDate>
      <link>https://dev.to/manthink/lorawan-goes-to-orbit-ntn-satellite-direct-to-device-explained-2651</link>
      <guid>https://dev.to/manthink/lorawan-goes-to-orbit-ntn-satellite-direct-to-device-explained-2651</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frx1kofxi94jxyh6lvu4w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frx1kofxi94jxyh6lvu4w.png" alt=" " width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Start with a coverage map
&lt;/h2&gt;

&lt;p&gt;Every engineer who has shipped an asset-tracking project has seen the same map: excellent LoRaWAN gateway coverage inside the project area, and a blank ring outside it — ocean routes, cross-border highways, ranchland, desert mining sites, polar research stations.&lt;/p&gt;

&lt;p&gt;That blank ring is not a deployment failure. It is the physical boundary of terrestrial networks. No number of towers covers a sea lane 400 km from the nearest coastline. The traditional answer was to switch protocols: adopt a proprietary satellite service (Iridium, Astrocast, Myriota and the like), paying the price in proprietary silicon, proprietary stacks, proprietary billing — and complete separation from the terrestrial network you already run.&lt;/p&gt;

&lt;p&gt;Since 2020, there is another option: let LoRaWAN itself go to orbit. The device keeps its LoRa chip and its LoRaWAN stack; the "gateway" simply moves from a rooftop to an orbit 500 km overhead. This is NTN (Non-Terrestrial Network) satellite direct-to-device connectivity, or D2D.&lt;/p&gt;

&lt;p&gt;This article explains what makes it work technically (LR-FHSS), who is operating it commercially (three operator architectures), what changes in device design, and when you should not use it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Why LoRaWAN in orbit, instead of switching to a satellite protocol
&lt;/h2&gt;

&lt;p&gt;Satellite IoT is not new. Iridium has run short-burst messaging for decades; Sigfox was born global. What changed is three milestones:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;November 2020&lt;/strong&gt;: Semtech introduced LR-FHSS (Long Range – Frequency Hopping Spread Spectrum), a new physical layer subsequently incorporated into the LoRaWAN RP002-1.0.2 regional parameters specification.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2025&lt;/strong&gt;: European regulators formally approved satellite-to-low-power-device communications, removing the last regulatory obstacle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2025–2026&lt;/strong&gt;: Operators including Lacuna Space and Plan-S launched satellites at scale, moving satellite LoRa from pilots to commercial deployment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The LoRa camp's logic in orbit mirrors its logic on the ground: &lt;strong&gt;use an open standard and low-cost silicon to undercut proprietary offerings&lt;/strong&gt;. Third-party analysis sketches the typical economics: cellular roaming in remote regions quotes around $14 per device per year, while a LoRa tracker node costs about $3. Cheap terminals plus a shared protocol stack mean that a team already running terrestrial LoRaWAN migrates to satellite backfill with minimal learning curve and minimal supply-chain change.&lt;/p&gt;

&lt;p&gt;A LoRa Alliance statement from October 2023 listed a long roster of satellite-active members: Actility, EchoStar Mobile, Eutelsat, Lacuna Space, Plan-S, Senet, Wyld Networks and more — spanning satellite operators, network platforms, and device vendors.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The technical core: LR-FHSS, a physical layer designed for satellite passes
&lt;/h2&gt;

&lt;p&gt;Conventional LoRa modulation (CSS, chirp spread spectrum) has one fatal weakness for satellites: Doppler shift. A LEO satellite sweeps past at roughly 7.5 km/s, and the resulting frequency offset is enough to break lock on a narrowband chirp signal in a 125 kHz channel.&lt;/p&gt;

&lt;p&gt;LR-FHSS is the answer built for exactly this. Its mechanism reduces to three words: fragment, hop, duplicate.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fragment&lt;/strong&gt;: split an uplink packet into ~50 ms chunks instead of one wide chirp occupying a full channel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hop&lt;/strong&gt;: transmit each chunk on pseudo-randomly selected 488 Hz narrowband subchannels within a total occupied bandwidth of 137 kHz, 336 kHz or 1.523 MHz depending on region. The extremely narrow subchannels are inherently tolerant of Doppler shift; hopping spreads collision and interference risk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duplicate&lt;/strong&gt;: the packet header (carrying the hopping-sequence seed, data rate, payload length and coding rate) is repeated 2–3 times; the payload is convolutionally encoded at rate 1/3 or 2/3 and split into fragments — recover the original payload once enough fragments arrive (1/3 of fragments for CR 1/3, 2/3 for CR 2/3).&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Parameter&lt;/th&gt;
&lt;th&gt;LR-FHSS DR8&lt;/th&gt;
&lt;th&gt;LR-FHSS DR9&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Coding rate&lt;/td&gt;
&lt;td&gt;1/3&lt;/td&gt;
&lt;td&gt;1/2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Header copies&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data rate&lt;/td&gt;
&lt;td&gt;162 bit/s&lt;/td&gt;
&lt;td&gt;325 bit/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sensitivity&lt;/td&gt;
&lt;td&gt;-137 dBm&lt;/td&gt;
&lt;td&gt;-137 dBm&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Key qualifiers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Uplink only.&lt;/strong&gt; LR-FHSS applies to the uplink; the downlink remains conventional LoRa-CSS. ACKs, receive windows and Class A timing behave exactly as on a terrestrial network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Link budget comparable to SF12&lt;/strong&gt; (155 dB class), but with far better interference robustness and capacity thanks to hopping and coded redundancy. Vendor material claims two orders of magnitude more capacity than conventional LoRa and gateway capacity jumping from thousands of nodes to millions — take those as marketing numbers until benchmarked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Packets stay small.&lt;/strong&gt; LR-FHSS maxes out around 50 bytes per packet. It expands "how many devices can send small messages simultaneously," not "how large one message can be." It complements SCHC compression (issue 31): SCHC shrinks headers, LR-FHSS spreads capacity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chip capability ≠ regional data rate.&lt;/strong&gt; SX1262 gains LR-FHSS support via software upgrade, and LR1121 (Sub-GHz + 2.4 GHz + S-band tri-mode) is the mainstream radio for new satellite-capable devices — but whether a modulation is usable inside LoRaWAN depends on the DR tables of the regional parameters revision you target. This is where vendor slides mislead.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. The commercial ecosystem: three architectures, three trade-offs
&lt;/h2&gt;

&lt;p&gt;Operators running LoRa-based satellite services commercially fall into three architecture classes.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Lacuna Space&lt;/th&gt;
&lt;th&gt;Plan-S Connecta&lt;/th&gt;
&lt;th&gt;EchoStar Mobile&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Orbit&lt;/td&gt;
&lt;td&gt;LEO, ~550 km&lt;/td&gt;
&lt;td&gt;LEO, ~500 km&lt;/td&gt;
&lt;td&gt;GEO, ~36,000 km&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Constellation&lt;/td&gt;
&lt;td&gt;~8 satellites (early-2026 public figures)&lt;/td&gt;
&lt;td&gt;~12–16 satellites&lt;/td&gt;
&lt;td&gt;One: EchoStar XXI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spectrum&lt;/td&gt;
&lt;td&gt;Unlicensed ISM&lt;/td&gt;
&lt;td&gt;Unlicensed ISM&lt;/td&gt;
&lt;td&gt;Licensed S-band&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Protocol&lt;/td&gt;
&lt;td&gt;LoRaWAN-compatible&lt;/td&gt;
&lt;td&gt;LoRaWAN-compatible&lt;/td&gt;
&lt;td&gt;LoRa-based proprietary stack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coverage cadence&lt;/td&gt;
&lt;td&gt;Intermittent, ~4–8 passes/day&lt;/td&gt;
&lt;td&gt;Intermittent, ~6–10 passes/day&lt;/td&gt;
&lt;td&gt;Continuous (regional GEO)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency&lt;/td&gt;
&lt;td&gt;Minutes to hours&lt;/td&gt;
&lt;td&gt;Minutes to hours&lt;/td&gt;
&lt;td&gt;Near real-time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coverage focus&lt;/td&gt;
&lt;td&gt;Global (polar orbits)&lt;/td&gt;
&lt;td&gt;EMEA/APAC&lt;/td&gt;
&lt;td&gt;Europe and adjacent regions&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Lacuna Space&lt;/strong&gt; (UK) is the standards champion. Spun out of the UK Satellite Applications Catapult in 2017, it flew Semtech silicon in 2019 and builds its own in-orbit LoRa receiver payload, LoneWhisper — functionally a LoRaWAN gateway in orbit. Its ground segment hooks directly into The Things Network, ChirpStack and Actility, which is the key to lowest-friction satellite backfill: your application server cannot tell whether a packet arrived from a rooftop gateway or an overhead satellite. Its "Call of the Wild" launches of June 2025 moved it into scale-up mode; a flagship case study is water-quality monitoring along 120 km of the River Teifi in Wales, where terrestrial coverage was too sparse even for basic council decision-making.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Plan-S Connecta&lt;/strong&gt; (Türkiye) is the vertically integrated fast follower — it builds, launches and operates its own satellites. Its launch cadence is aggressive; constellation density over Türkiye, the Gulf, India and Southeast Asia has already overtaken Lacuna, and a partnership with Türk Telekom pushes satellite IoT through telecom channels. Public case studies concentrate on electricity meter telemetry, fuel tank monitoring and renewable asset health.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EchoStar Mobile&lt;/strong&gt; is the other extreme: a single geostationary satellite (EchoStar XXI), licensed S-band, and a proprietary stack on top of LoRa rather than native LoRaWAN. GEO removes the Doppler problem and delivers continuous coverage, at the cost of a much worse link budget (36,000 km vs 500 km) and higher device power draw. If you need to send a command and get an ack within seconds, it is the only LoRa-flavored option that delivers — but you give up native-LoRaWAN openness.&lt;/p&gt;

&lt;p&gt;Choosing among them is an architecture decision, comparable to choosing Wi-Fi versus Bluetooth: &lt;strong&gt;LEO on unlicensed spectrum = lowest terminal cost plus intermittent connectivity; GEO on licensed spectrum = higher power plus continuous connectivity plus interference protection&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Five things that change in device design
&lt;/h2&gt;

&lt;p&gt;A satellite LoRa device is not a terrestrial LoRa device with a different antenna. Five design logics must be rewritten:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pass windows are scarce.&lt;/strong&gt; A LEO satellite is overhead 5–15 minutes per pass; the next pass may be 90 minutes or 12 hours away depending on constellation density. If a device wakes to send a heartbeat with no satellite in view, that transmission energy is wasted. Mature firmware plans wake-ups from orbital almanac data and transmits only inside known pass windows — Lacuna calls this "almanac provisioning." Managing an orbital calendar inside an MCU with no internet connection is the most underestimated software task in these projects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each pass offers 30–60 useful seconds per device&lt;/strong&gt;, shared with every other device under the same footprint. This forces a healthy discipline: compute the absolute minimum payload, encode it tightly, stop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The antenna stops being an afterthought.&lt;/strong&gt; A satellite at low elevation sits at a worse angle than a gateway on a tower. Buoys and livestock collars cannot guarantee orientation: either the antenna pattern is omnidirectional enough, or firmware retries until a high-elevation pass arrives.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Battery-life claims need a sanity check.&lt;/strong&gt; "10-year battery" is the most common figure in satellite IoT marketing — achievable on paper, but only with very low message rates, large primary cells, and clean sleep between transmissions. All three conditions, every time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The duty-cycle math changes.&lt;/strong&gt; With intermittent connectivity, "how often do we report" is no longer just a business question; it is a joint optimization of pass frequency, message importance and battery budget.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  6. What it is not: three honest boundaries
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Not low latency.&lt;/strong&gt; Under LEO architectures, data latency runs minutes to hours; the only near-real-time option is GEO (EchoStar), which carries its own power penalty.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not bidirectional real-time control.&lt;/strong&gt; Downlink opportunities on LEO operators are sparse. Intermittent connectivity cannot run valve switching. Satellite LoRa serves "report state upward," not "push commands downward."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not a terrestrial replacement.&lt;/strong&gt; It is backfill. Wherever the ground can cover, terrestrial wins on cost, latency, capacity and bidirectionality. The right question is not "should we use satellite" but "how many of these devices will never fall inside terrestrial coverage."&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. Decision checklist
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Good fits for satellite LoRa:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Maritime and inland-waterway container and vessel tracking — no terrestrial coverage along the route&lt;/li&gt;
&lt;li&gt;Livestock and wildlife tracking — collar devices, arbitrary orientation, one position per day is enough&lt;/li&gt;
&lt;li&gt;Remote environmental and water-quality monitoring — boreholes, rivers, rangeland, where manual inspection is expensive&lt;/li&gt;
&lt;li&gt;Cross-border assets and cold chain — cost-sensitive terminals, low message volume (a few messages per day)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Poor fits:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Buildings, factories, campuses — terrestrial coverage wins everywhere that matters&lt;/li&gt;
&lt;li&gt;Devices needing second-level downlink control — intermittent connectivity cannot do it (unless GEO, accepting the power cost)&lt;/li&gt;
&lt;li&gt;High-frequency telemetry (minute-level reporting) — LEO capacity and pass cadence cannot carry it; NB-IoT or proprietary satellite fits better&lt;/li&gt;
&lt;li&gt;ABP legacy fleets expecting a drop-in network swap — session management on satellite NS still follows the OTAA path; device firmware changes are required&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  8. The platform view: how ThinkLink fits in
&lt;/h2&gt;

&lt;p&gt;ThinkLink is a terrestrial LoRaWAN network server supporting 1.0.2 / 1.0.3 / 1.0.4. The official knowledge base currently carries no dedicated satellite documentation, so platform-capability statements here stay conservative pending official confirmation. The integration path, however, is clear and ecosystem-proven:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The standard route for satellite messages into a platform is operator ground-segment bridging.&lt;/strong&gt; Lacuna's service integrates with TTN, ChirpStack and Actility and emits standard NS-side device messages. For platforms like ThinkLink, the path is to treat the satellite operator (or its bridge) as a special "gateway" or upstream NS — thing-model decoding, alert rules, and MQTT forwarding all keep working unchanged.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chip capability ≠ platform capability.&lt;/strong&gt; LR-FHSS support in SX1262 or LR2021 lives at the radio-chip level; usability inside LoRaWAN depends on regional-parameter DR tables. Radio selection and platform selection are two separate confirmations on a satellite project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dual-NS architecture gains a new use here.&lt;/strong&gt; The terrestrial NS handles routine telemetry while the satellite link acts as a low-frequency backfill channel — uplink dual-send, downlink single-send remains the rule, with the satellite side designed as a status-reporting channel, not a control channel.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One sentence to take away: LoRaWAN in orbit extends the boundary of a terrestrial network from the top of a gateway pole to low Earth orbit. For teams already running terrestrial LoRaWAN, it is not a new technology stack — it is the same stack stretched across the gatewayless parts of the planet, provided you accept intermittent connectivity as a premise and rewrite device design around pass windows.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;References: LoRaWAN RP002 regional parameters, Semtech LR-FHSS technical material, LoRa Alliance member announcements (Oct 2023), Lacuna Space press releases (Jun 2025), third-party operator comparisons (2026). Specific specifications and pricing subject to official vendor publications.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>iot</category>
      <category>networking</category>
    </item>
    <item>
      <title>LoRaWAN Relay Explained: One Hop Into the Hardest Corners of Your Network</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Wed, 04 Nov 2026 03:22:13 +0000</pubDate>
      <link>https://dev.to/manthink/lorawan-relay-explained-one-hop-into-the-hardest-corners-of-your-network-10bn</link>
      <guid>https://dev.to/manthink/lorawan-relay-explained-one-hop-into-the-hardest-corners-of-your-network-10bn</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9x3h3hqn8heaw0rghhdi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9x3h3hqn8heaw0rghhdi.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every LoRaWAN deployment drawing has them: the last 5 percent of devices. A water meter buried in a concrete valve chamber, a temperature sensor inside a metal distribution cabinet, a parking sensor at the far end of a basement level with no power supply. These devices may sit only a few hundred meters from the nearest gateway — with a wall in between that costs tens of decibels.&lt;/p&gt;

&lt;p&gt;Traditionally there have been only two options: move a gateway next to the devices, or abandon those points. Moving a gateway means power, backhaul, construction and ongoing operations all follow it — hard to justify for three or five sensors. Abandoning means white spots, and manual meter reading for exactly the accounts that are hardest to serve.&lt;/p&gt;

&lt;p&gt;On October 3, 2022, the LoRa Alliance added a standardized third option: the LoRaWAN Relay Specification (TS011-1.0.0). A battery-powered relay node forwards the traffic of devices stuck in coverage dead zones to the nearest gateway, with no new infrastructure. This article breaks the mechanism down: how it works, what the security model is, where the hard limits are, and when to use it — and when not to.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What Relay Is — and What It Is Not
&lt;/h2&gt;

&lt;p&gt;First, what it is not: Relay is not a mesh.&lt;/p&gt;

&lt;p&gt;LoRaWAN's star-of-stars topology is unchanged. The Relay specification inserts a single, &lt;strong&gt;standard end-device-shaped&lt;/strong&gt; node into that star: a battery-powered relay whose form factor and power budget resemble an ordinary end device, which forwards traffic on behalf of devices in deep-coverage blind spots. The relay itself is still a standard LoRaWAN end device — it registers with the Network Server, reports its own data, and is managed like any other node.&lt;/p&gt;

&lt;p&gt;Three design constraints are worth memorizing:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One hop only.&lt;/strong&gt; At most one relay may sit between an end device and the gateway. No relay-to-relay chaining. That caps coverage extension at roughly a doubling of the original radius. The LoRa Alliance deliberately scoped Relay as a coverage-patching tool, not a networking technology: multi-hop routing brings compounding costs in power, latency and failure domains that conflict with LoRaWAN's low-power positioning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Battery powered by design.&lt;/strong&gt; No mains, no Ethernet. That is what allows a relay to be tucked into a valve chamber, a ceiling void, or a cabinet — the "last meter" positions where gateways cannot go. In Semtech's reference implementation, relay battery life reaches 7 to 10 years depending on the number of served devices and daily data volume.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reversibility.&lt;/strong&gt; Devices operating behind a relay must be able to fall back to normal direct LoRaWAN operation. This reversibility is an important insurance policy: if the relay fails or is decommissioned, the served devices are not stranded.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The Uplink: WOR Knocks First, Data Follows
&lt;/h2&gt;

&lt;p&gt;The core tension: a relay is a battery device that cannot keep its receiver on continuously, yet uplink traffic from served devices is random — and a gateway's always-on multi-channel receiver is far beyond what end-device hardware offers.&lt;/p&gt;

&lt;p&gt;The specification solves this with two-stage communication. An uplink takes four steps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1 — the WOR frame (Wake On Radio).&lt;/strong&gt; The served device does not send data first. It sends a short wake-up frame on a dedicated WOR channel. This frame carries no application data — only metadata about the transmission to follow, such as frequency and data rate. WOR frames use a long preamble so a deeply sleeping relay can be woken by low-power detection rather than a continuously listening receiver.&lt;/p&gt;

&lt;p&gt;Default WOR channel parameters: SF9/BW125 in EU868, AS923 and similar regions; SF10/BW500 in US915 and AU915. Operators may configure a second WOR channel to reduce cross-waking — a single WOR frame waking several nearby relays that each process it before discovering it is not addressed to them is exactly the waste the specification is designed to prevent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2 — CAD listening.&lt;/strong&gt; The relay does not "wait" for WOR frames; it performs Channel Activity Detection. It wakes periodically, samples the WOR channel for preamble energy, and goes back to sleep if there is nothing. The CAD period is configurable between 25 milliseconds and 1 second (default 1 second). Shorter periods mean faster response but higher battery drain — this is the main power-consumption tuning knob.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3 — the WOR-ACK handshake.&lt;/strong&gt; On detecting a WOR frame, the relay decrypts and validates it, and if it is addressed to this relay, replies with a WOR-ACK carrying the parameters for the forwarding link: data rate between relay and network, crystal accuracy, CAD periodicity, and forwarding capacity. The served device now knows exactly how to transmit and when the relay will forward.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4 — the real uplink, encapsulated and forwarded.&lt;/strong&gt; The device sends its actual LoRaWAN uplink frame to the relay on the agreed parameters. The relay wraps this frame inside its own standard LoRaWAN uplink and sends it to the gateway on &lt;strong&gt;FPort 226&lt;/strong&gt; — the port the specification reserves exclusively for relay traffic — together with metadata: the RSSI, SNR, data rate and WOR channel observed when the original frame arrived at the relay. The Network Server unwraps the frame and sees the device's original frame, unmodified. To the Application Server, data arriving via a relay is indistinguishable from data arriving directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The Downlink: the RXR Window, 18 Seconds Later
&lt;/h2&gt;

&lt;p&gt;Downlink works the other way around: the Network Server delivers a downlink destined for a deep-coverage device inside the &lt;strong&gt;relay's own&lt;/strong&gt; RX1 or RX2 window — the server first hands the downlink to the relay, and the relay then hands it to the served device.&lt;/p&gt;

&lt;p&gt;The relay transmits the downlink in a window called RXR, which opens at a fixed &lt;strong&gt;18 seconds after the served device's uplink&lt;/strong&gt;. Those 18 seconds are deliberate headroom, letting the full round trip — device, relay, gateway, server — complete so the server's response makes it back to the relay in time. RXR uses the WOR frame's data rate but the frequency of the device's actual uplink.&lt;/p&gt;

&lt;p&gt;This yields a direct engineering conclusion: &lt;strong&gt;relay links are not for latency-sensitive bidirectional interaction.&lt;/strong&gt; A single request-response round trip must traverse the 18-second window timing plus CAD wake-up latency. Occasional downlinks such as parameter configuration are fine; Class C-style real-time control is not what Relay was designed for.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Security: the Relay Is a Dumb Pipe
&lt;/h2&gt;

&lt;p&gt;There are two independent radio links on a relay path, and the specification provisions two independent sets of session keys:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Device-to-relay uses a dedicated key set: RootWorSKey derives WorSIntKey (verifying WOR frame integrity) and WorSEncKey (encrypting WOR frame payloads). With OTAA these are derived after the Join-Accept; with ABP they are pre-provisioned.&lt;/li&gt;
&lt;li&gt;Relay-to-gateway uses the relay's own standard LoRaWAN session keys.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The critical point: the served device's application payload remains encrypted under the device's own application session key, which the relay never holds. The relay can only encapsulate and forward the already-encrypted frame — &lt;strong&gt;the relay is a dumb pipe, not a decryption node&lt;/strong&gt;. Physically stealing a relay yields the relay's own session, not the data of the devices it serves.&lt;/p&gt;

&lt;p&gt;This preserves LoRaWAN's end-to-end security philosophy, and it is what makes Relay acceptable for metering and other municipal critical infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Four Hard Limits to Check Before You Commit
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;One hop.&lt;/strong&gt; As above — a single relay between device and gateway, no exceptions. Scenarios requiring two hops to breach two barriers are out of scope; re-plan the gateway.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Capacity.&lt;/strong&gt; The specification's minimum requirement is that a relay serves at least 10 end devices; Semtech's implementation and Actility ThingPark's documentation both state a maximum of 16 served devices per relay. A chamber holding thirty or forty devices does not fit this model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Device-mode restrictions.&lt;/strong&gt; In Actility ThingPark's implementation, devices operating behind a relay must use &lt;strong&gt;Class A with OTAA&lt;/strong&gt;. Pre-provisioned ABP devices and devices requiring Class C real-time downlink cannot run behind a relay (the relay node itself may be any Class and either activation mode).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ecosystem maturity.&lt;/strong&gt; Relay requires NS-side decapsulation and a WOR/CAD state machine in device firmware. Semtech has integrated Relay into LoRa Basics Modem v4, and Actility ThingPark has supported relays since release 7.3 (initially as a proof of concept, with MAC command support expanding across releases). But relative to the 1.0.x core protocol, the device- and platform-side ecosystem is still ramping up. Verifying the terminal's software stack version and your Network Server's support status is mandatory homework before procurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. When to Use Relay — and When Not To
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Use Relay when all four conditions hold:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Few devices in the dead zone (a handful to a dozen or so), too few to justify a gateway;&lt;/li&gt;
&lt;li&gt;No mains power and no backhaul in the zone, or construction costs are unreasonable — valve chambers, buried vaults, tops of metal cabinets;&lt;/li&gt;
&lt;li&gt;Traffic is periodic uplink reporting, tolerant of 18-second-class downlink latency;&lt;/li&gt;
&lt;li&gt;Devices are Class A + OTAA, or can be migrated to that mode.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The canonical profile is the market the specification originally targeted: municipal water, gas and heat metering, deep-indoor building endpoints, and monitoring points inside industrial metal environments. Semtech ran field trials for remote water meter collection in Colorado with Arad, Actility and Deviceroy — validating exactly this "edge white-spot" route.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do not use Relay when:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The area has a dense device population — add a gateway; the 16-device cap and single-hop forwarding become bottlenecks;&lt;/li&gt;
&lt;li&gt;The application needs second-class real-time downlink control;&lt;/li&gt;
&lt;li&gt;The network is dominated by legacy ABP devices that cannot be firmware-upgraded;&lt;/li&gt;
&lt;li&gt;You expect the signal to pass two barriers — the one-hop limit closes that door.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One common confusion deserves its own paragraph: &lt;strong&gt;Relay is not a repeater.&lt;/strong&gt; The market is full of PHY-layer LoRa repeaters that receive a signal and blindly retransmit it. They are simple, need no NS support — and retransmit raw physical-layer signals: they double channel occupancy, have no authentication (anyone can make them forward), cannot do downlink, and cannot sleep. The Relay specification upgrades "relaying" from a dumb PHY-layer amplifier to a manageable, authenticated, sleep-capable, bidirectional standard network node at the MAC layer. For a throwaway private-protocol project a repeater may do; for anything with a long operations lifetime, security requirements, or platform management, use standard Relay.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Certification and Platform Side: Two Items for the Project Plan
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Certification has no shortcut.&lt;/strong&gt; As covered in our article on the LoRaWAN certification program: protocol certification for Relay, SCHC and FUOTA can only be performed at ATL laboratories — self-test labs are not authorized to cover them. And the ATL list currently includes no laboratory in mainland China, so samples must travel abroad for testing. If your product line is going to claim Relay support, schedule the certification timeline and budget into the project plan.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Platform side, manage it like a standard end device.&lt;/strong&gt; In the architecture, the gateway remains a transparent radio-to-IP forwarder; encapsulation and decapsulation happen between the end device, the relay and the Network Server — which is exactly why Relay depends on NS-side support. ThinkLink's current stated compatibility is LoRaWAN 1.0.2 / 1.0.3 / 1.0.4; Relay is a TS011 extension specification, and its support timeline should be confirmed with the platform vendor directly. When planning a Relay project, the first step is confirming your NS's decapsulation and relay-management status — before buying hardware.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing Thoughts
&lt;/h2&gt;

&lt;p&gt;The Relay specification solves a decidedly unglamorous problem: the hardest few devices in the last hundred meters. It introduces no new topology and breaks no security model; with restrained boundaries — one hop, 16 devices, 18 seconds — it buys battery-powered, install-anywhere, reversible coverage patching.&lt;/p&gt;

&lt;p&gt;For teams working in metering, buildings or industrial monitoring, Relay belongs on the network-planning shelf: most projects will not need it, but when those white-spot devices appear, it is the only standard answer that requires no new investment case.&lt;/p&gt;

</description>
      <category>hardware</category>
      <category>iot</category>
      <category>networking</category>
    </item>
    <item>
      <title>LoRaWAN Device Certification: What the Certificate Proves - and What It Does Not</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Tue, 03 Nov 2026 07:45:22 +0000</pubDate>
      <link>https://dev.to/manthink/lorawan-device-certification-what-the-certificate-proves-and-what-it-does-not-2fa2</link>
      <guid>https://dev.to/manthink/lorawan-device-certification-what-the-certificate-proves-and-what-it-does-not-2fa2</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb2bnjy27sjt85ehmibcg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb2bnjy27sjt85ehmibcg.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Currency note&lt;/strong&gt;: USD figures in this article are quoted as published. Where a CNY equivalent is given, it uses 1 USD ≈ 6.71 CNY (October 2026 basis) and is an estimate only. Certification fees follow the LoRa Alliance price list in force at the time of application.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Introduction: a bid document that came back rejected
&lt;/h2&gt;

&lt;p&gt;A systems integrator working on a campus energy-monitoring project was stopped at the qualification stage. The tender stated that all LoRaWAN end devices must hold LoRaWAN certification.&lt;/p&gt;

&lt;p&gt;He submitted his CE-RED declaration of conformity and attached an FCC ID. The client's technical lead looked at it and said: that is not what I asked for.&lt;/p&gt;

&lt;p&gt;This happens every year, and it keeps happening for one reason: the word "certification" is overworked in both English and Chinese. Radio regulatory approval is called certification. Battery transport is called certification. Information security is called certification. LoRaWAN protocol interoperability is also called certification. Different bodies issue them, they test different things, and none of them substitutes for another.&lt;/p&gt;

&lt;p&gt;This article covers exactly one: &lt;strong&gt;LoRa Alliance LoRaWAN device certification (LoRaWAN Certified)&lt;/strong&gt;. What it tests, what it costs, how long it takes, when it expires — and what it does &lt;em&gt;not&lt;/em&gt; prove. That last part matters more than every number before it, because it determines whether you can deliver on a contractual promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Three separate things that get conflated into one
&lt;/h2&gt;

&lt;p&gt;Before a LoRaWAN sensor ships, three entirely independent sets of requirements sit on top of it. Different authors, different mandatory status, different failure modes.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Covers&lt;/th&gt;
&lt;th&gt;Set by&lt;/th&gt;
&lt;th&gt;Mandatory?&lt;/th&gt;
&lt;th&gt;Consequence if missing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Radio regulatory approval&lt;/td&gt;
&lt;td&gt;Spectrum, EMC, safety, RF exposure, network protection&lt;/td&gt;
&lt;td&gt;National regulators (EU RED, US FCC, Canada ISED, China MIIT)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cannot be legally sold or connected; customs can hold the shipment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Protocol interoperability&lt;/td&gt;
&lt;td&gt;LoRaWAN MAC-layer behaviour, works on another vendor's network server&lt;/td&gt;
&lt;td&gt;LoRa Alliance (industry consortium)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Sellable, but may misbehave across networks; may be rejected in tenders&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product compliance&lt;/td&gt;
&lt;td&gt;Battery transport and regulation, cybersecurity, hazardous substances, waste&lt;/td&gt;
&lt;td&gt;EU law, dangerous goods rules, etc.&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes, per category&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Blocked at each category separately&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Memorise this table and much of the confusion downstream disappears.&lt;/p&gt;

&lt;p&gt;The most common conflation is treating &lt;strong&gt;regulatory approval&lt;/strong&gt; as &lt;strong&gt;protocol certification&lt;/strong&gt;. The two examine completely different objects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Regulatory approval asks whether your device will interfere with others. It does not care whether your packets conform to the LoRaWAN specification; it cares about power, duty cycle, out-of-band spurious emissions, and frequency error against limits.&lt;/li&gt;
&lt;li&gt;LoRaWAN certification asks whether what your device says can be understood by somebody else's network server. It does not rule on legality, only on &lt;strong&gt;interoperability&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A device can be perfectly legal and still interoperate badly — beautiful RF numbers, but a MAC layer with deviations that fail to join on a different network server. Conversely, a LoRaWAN-certified device that exceeds spurious limits still cannot be sold. The two are intersecting sets, not nested ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What LoRaWAN certification actually tests
&lt;/h2&gt;

&lt;p&gt;The technical baseline is two documents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TS001-1.0.4&lt;/strong&gt; — end-device certification requirements, explicitly tagged in the Alliance resource hub as the L2 document "REQUIRED FOR CERTIFICATION";&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RP002&lt;/strong&gt; — regional parameters, published separately from TS001 and serving both the 1.0.x and 1.1 branches. The current edition is &lt;strong&gt;RP002-1.0.5&lt;/strong&gt; (published October 2025).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Test cases split into mandatory and optional columns. The mandatory set looks roughly like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test case&lt;/th&gt;
&lt;th&gt;Criterion of note&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Application-layer functional test&lt;/td&gt;
&lt;td&gt;End-to-end send/receive path works&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Downlink PER (packet error rate)&lt;/td&gt;
&lt;td&gt;Permitted ceiling &lt;strong&gt;5%&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;First and second receive windows&lt;/td&gt;
&lt;td&gt;Verified per Class A/B/C definitions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frame sequence number (frame counter)&lt;/td&gt;
&lt;td&gt;Monotonic increment, correct wraparound handling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Channel add / modify&lt;/td&gt;
&lt;td&gt;MAC command takes effect, state stays consistent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Confirmed / unconfirmed uplink and downlink&lt;/td&gt;
&lt;td&gt;Behaviour for both message types&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parameter change and read-back (downlink)&lt;/td&gt;
&lt;td&gt;Downlink configuration is verifiable afterwards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate adaptation&lt;/td&gt;
&lt;td&gt;ADR behaviour conforms to spec&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transmit power control&lt;/td&gt;
&lt;td&gt;Power setting matches actual output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Confirmed-message retransmission&lt;/td&gt;
&lt;td&gt;Retry count and interval conform to spec&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Optional cases include downlink timing, MAC commands, LinkCheck, and uplink frequencies — whether they run depends on the capabilities the device declares.&lt;/p&gt;

&lt;p&gt;One specification fact is routinely overlooked: &lt;strong&gt;every LoRaWAN end device must implement at least Class A&lt;/strong&gt;; Class B (beacon-synchronised receive windows) and Class C (continuous listening) are optional additions. RP002 recommends &lt;code&gt;RECEIVE_DELAY1&lt;/code&gt; of 1 second and &lt;code&gt;RECEIVE_DELAY2&lt;/code&gt; of 2 seconds — you will use those two numbers repeatedly when designing downlink timing and calculating worst-case wait.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Two paths: send it to a lab, or test it yourself
&lt;/h2&gt;

&lt;p&gt;Only LoRa Alliance members can certify devices. Once you are a member, there are two routes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Route one: ATL (Authorized Test Lab)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Register the device in LWCS (the LoRaWAN Web Certification System) and pay the Alliance certification fee;&lt;/li&gt;
&lt;li&gt;Select an ATL in LWCS and ship samples;&lt;/li&gt;
&lt;li&gt;When the device passes, the ATL transmits the test results plus a request for a Certificate of Compliance to the Alliance, which reviews and issues the certificate.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ATL qualification is not trivial: the lab must be a member, hold ISO/IEC 17025 accreditation from an ILAC-recognised body (from 1 January 2026 the Global ACI MRA covers the former ILAC MRA scope), add LoRaWAN testing to its accredited scope, and may be inspected on site.&lt;/p&gt;

&lt;p&gt;As of 7 October 2026, the Alliance's published ATL list is:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Region&lt;/th&gt;
&lt;th&gt;Laboratory&lt;/th&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Asia-Pacific&lt;/td&gt;
&lt;td&gt;DEKRA Certification Japan K.K.&lt;/td&gt;
&lt;td&gt;Yokohama, Japan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Asia-Pacific&lt;/td&gt;
&lt;td&gt;DEKRA Testing and Certification Co., Ltd.&lt;/td&gt;
&lt;td&gt;Taiwan, China&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Europe / Middle East / Africa&lt;/td&gt;
&lt;td&gt;7layers GmbH&lt;/td&gt;
&lt;td&gt;Germany&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Europe / Middle East / Africa&lt;/td&gt;
&lt;td&gt;DEKRA Testing and Certification, S.A.U.&lt;/td&gt;
&lt;td&gt;Málaga, Spain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Europe / Middle East / Africa&lt;/td&gt;
&lt;td&gt;IMST GmbH&lt;/td&gt;
&lt;td&gt;Germany&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Americas&lt;/td&gt;
&lt;td&gt;DEKRA Testing and Certification, Inc.&lt;/td&gt;
&lt;td&gt;Sterling, Virginia, USA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Americas&lt;/td&gt;
&lt;td&gt;DEKRA Testing and Certification&lt;/td&gt;
&lt;td&gt;Brazil&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Note the geography: &lt;strong&gt;there is no ATL in mainland China&lt;/strong&gt;. Samples cross a border. Logistics, customs clearance, and return shipping all land in the project schedule — this is not "courier it and wait for the result".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Route two: Self-Test&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Qualifying members can test in their own facility. The process: submit a self-test application → Alliance review → &lt;strong&gt;every LoRaWAN test engineer must pass a knowledge assessment&lt;/strong&gt; → register one sample device in LWCS for each channel plan to be certified → run LCTT and upload results → the Alliance certification team reviews and grants Self-Test Lab status.&lt;/p&gt;

&lt;p&gt;Self-testing saves lab fees and spends qualification and headcount instead. And there is a hard boundary: &lt;strong&gt;Relay, SCHC, and FUOTA certification remain with ATLs&lt;/strong&gt; — a self-test lab cannot do them.&lt;/p&gt;

&lt;p&gt;Both routes use &lt;strong&gt;LCTT (LoRaWAN Certification Test Tool)&lt;/strong&gt;. It automates end-device testing against TS001 and RP002, interacting with the device over the certification protocol defined in TS009 (latest: TS009-1.2.1). On the ATL route LCTT is a pre-test tool; on the self-test route it produces the results you submit. Each member gets &lt;strong&gt;one free licence per year&lt;/strong&gt;; additional licences are &lt;strong&gt;USD 1,000 each&lt;/strong&gt; (approximately CNY 6,710).&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Where the money actually goes
&lt;/h2&gt;

&lt;p&gt;Most people assume certification is expensive because of the Alliance fee. It is not. The Alliance charges a &lt;strong&gt;one-off certificate fee&lt;/strong&gt;; the real weight is laboratory testing plus any remediation and re-test.&lt;/p&gt;

&lt;p&gt;The Alliance fee is tiered by device type and test route, paid once when the certificate is issued:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Subject&lt;/th&gt;
&lt;th&gt;Route&lt;/th&gt;
&lt;th&gt;Alliance fee (USD)&lt;/th&gt;
&lt;th&gt;Approx. CNY&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Module&lt;/td&gt;
&lt;td&gt;ATL&lt;/td&gt;
&lt;td&gt;2,000&lt;/td&gt;
&lt;td&gt;13,420&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Module&lt;/td&gt;
&lt;td&gt;Self-test&lt;/td&gt;
&lt;td&gt;2,800&lt;/td&gt;
&lt;td&gt;18,788&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;End device&lt;/td&gt;
&lt;td&gt;ATL&lt;/td&gt;
&lt;td&gt;1,200&lt;/td&gt;
&lt;td&gt;8,052&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;End device&lt;/td&gt;
&lt;td&gt;Self-test&lt;/td&gt;
&lt;td&gt;1,700&lt;/td&gt;
&lt;td&gt;11,407&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Child (CbS or added region), 1–3&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;750 each&lt;/td&gt;
&lt;td&gt;5,033 each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Child, 4–10&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;400 each&lt;/td&gt;
&lt;td&gt;2,684 each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Child, more than 10&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;200 each&lt;/td&gt;
&lt;td&gt;1,342 each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New certificate for permissive changes&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;671&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One counter-intuitive detail: &lt;strong&gt;self-testing costs more than ATL&lt;/strong&gt; on the certificate fee itself. End device self-test is USD 1,700 versus USD 1,200 for ATL, because the Alliance folds review effort into the self-test price. So "self-test saves money" only holds when your lab cost exceeds that 500-dollar gap — which it usually does, since chamber time, staff, and facilities cost far more.&lt;/p&gt;

&lt;p&gt;Membership is the entry ticket. Adopter suits SMEs; Contributor is &lt;strong&gt;USD 20,000/year&lt;/strong&gt; (approximately CNY 134,200); Sponsor is &lt;strong&gt;USD 50,000/year&lt;/strong&gt; (approximately CNY 335,500); Institutional is free for government entities, cities, districts, and universities. Companies whose top-level parent revenue is under USD 1 million can apply for the "Adopter Startup" rate, with a CEO letter verified at joining and at each renewal.&lt;/p&gt;

&lt;p&gt;Every tier receives a &lt;strong&gt;VendorID&lt;/strong&gt; (required for the standard device QR code) and a &lt;strong&gt;NetID&lt;/strong&gt; address space sized by tier.&lt;/p&gt;

&lt;p&gt;Put it together, and third-party industry guides estimate whole-programme cost as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full certification from scratch (lab fees, Alliance fees, potential remediation and re-test): &lt;strong&gt;USD 12,000–20,000&lt;/strong&gt; (approximately CNY 81,000–134,000), timeline &lt;strong&gt;8–16 weeks&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;Using a pre-certified module and testing only final-product RF and antenna integration: &lt;strong&gt;USD 5,000–9,000&lt;/strong&gt; (approximately CNY 34,000–60,000), timeline &lt;strong&gt;4–8 weeks&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read those ranges carefully: they are third-party estimates with remediation headroom, not an Alliance quote. The Alliance itself quotes an average of &lt;strong&gt;3 days to 2 weeks&lt;/strong&gt; — but that covers review and issuance &lt;strong&gt;once the paperwork is complete&lt;/strong&gt;, excluding your own debugging, shipping, queueing, and remediation. The two figures do not contradict; they measure different segments.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. CbS: the most valuable rule, with hard preconditions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Certification by Similarity (CbS)&lt;/strong&gt; is the best-value rule in the programme. It applies in two cases: the product embeds an &lt;strong&gt;already-certified LoRaWAN module&lt;/strong&gt;, or the product is a &lt;strong&gt;variant of an already-certified product&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The Alliance lists four preconditions, all required:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The &lt;strong&gt;same LoRaWAN transceiver&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;same LoRaWAN protocol software version&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;Submission &lt;strong&gt;within five years&lt;/strong&gt; of the parent certificate;&lt;/li&gt;
&lt;li&gt;LCTT used to confirm conformity to the &lt;strong&gt;same specification version&lt;/strong&gt; as the parent.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The enclosure and the sensor may differ — which is exactly why it saves money. New housing, new sensing element, new mounting: no need to rerun the full protocol suite.&lt;/p&gt;

&lt;p&gt;Two traps hide behind it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The parent certificate holder must still be a member in good standing.&lt;/strong&gt; If you rely on another vendor's module CbS and that vendor leaves or falls behind on dues, your CbS claim loses its basis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modules themselves cannot use CbS.&lt;/strong&gt; A module can only add regions through child pricing, not through similarity.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One detail worth exploiting: child devices &lt;strong&gt;need not be certified at the same time as the parent&lt;/strong&gt;. Certify the primary model to open the market, then extend derived regional versions and sub-models in batches at 750 / 400 / 200 dollars — the unit price drops to 400 from the fourth and to 200 from the eleventh. The longer the product line, the lower the certification cost per model.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Five years of validity, and what invalidates it
&lt;/h2&gt;

&lt;p&gt;Devices certified after 3 June 2024 hold a certificate valid for &lt;strong&gt;five years&lt;/strong&gt;, unless revoked or unless the product is modified in a way that affects compliance. Devices certified earlier keep their certification as long as they meet the requirements in force when they were certified.&lt;/p&gt;

&lt;p&gt;"Affects compliance" needs unpacking, otherwise it says nothing. Judged against what certification tests, these categories almost certainly trigger reassessment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Changes to MAC command implementation or timing (receive windows, retransmission strategy, parameter read-back);&lt;/li&gt;
&lt;li&gt;Changes to regional-parameter behaviour (channel plan, power ceilings, duty-cycle strategy);&lt;/li&gt;
&lt;li&gt;Swapping the transceiver or the RF front end (PA/LNA, matching network);&lt;/li&gt;
&lt;li&gt;Firmware changes that affect RF output — &lt;strong&gt;including changes delivered over the air&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The last one is the most dangerous in practice. Many teams treat "OTA capable" as a pure software advantage and forget it is simultaneously a &lt;strong&gt;channel for changing certified RF behaviour&lt;/strong&gt;. Before any release, ask: does this change touch RF behaviour or regional parameters? If it does, certification status needs reassessment.&lt;/p&gt;

&lt;p&gt;This connects directly to our earlier article on OTA A/B partitioning: whether you can roll back safely is a &lt;strong&gt;reliability&lt;/strong&gt; question; whether the change exceeds the certified scope is a &lt;strong&gt;compliance&lt;/strong&gt; question. Both must be answered in release review, by different people.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Which version are you actually certifying against
&lt;/h2&gt;

&lt;p&gt;LoRaWAN specification versions are not marketing numbers. Each one changed specific behaviour. Pick the wrong one and you are testing against the wrong baseline.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Version&lt;/th&gt;
&lt;th&gt;Key changes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1.0.1&lt;/td&gt;
&lt;td&gt;Added frequency plans for China 470–510 MHz and Australia 915–928 MHz; removed the possibility of sending unencrypted application payload at MAC level&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.0.2&lt;/td&gt;
&lt;td&gt;Physical layer split into a separate regional parameters document; added DlChannelReq and TXParamSetupReq&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.0.3&lt;/td&gt;
&lt;td&gt;Imported the Class B chapter from LoRaWAN 1.1; added DeviceTimeReq/Ans, deprecated BeaconTimingReq/Ans&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.1 (11 Oct 2017)&lt;/td&gt;
&lt;td&gt;Two root keys, NwkKey and AppKey; session keys split into FNwkSIntKey, SNwkSIntKey, NwkSEncKey&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.0.4 (Oct 2020)&lt;/td&gt;
&lt;td&gt;AppEUI/AppNonce renamed JoinEUI/JoinNonce; Class B and C defined as additive to Class A; RP002 referenced as companion; frame counters always 32 bits and persisted by ABP devices; DevNonce a counter that never repeats&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The current certification baseline is &lt;strong&gt;TS001-1.0.4&lt;/strong&gt;. That has a direct implication for buyers: the specification version printed on a certificate determines what the certificate can prove. Several 1.0.4 changes are hard requirements — 32-bit frame counters, persisted counters on ABP devices, non-repeating DevNonce — and these are precisely the root causes behind field reports of "device cannot rejoin after reboot" and "ABP device rejected by the network".&lt;/p&gt;

&lt;p&gt;On 1.1 there is one compatibility rule worth isolating:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A 1.1 end device that must stay compatible with a 1.0 network server &lt;strong&gt;must fall back&lt;/strong&gt; to the single-root-key scheme when the Join-Accept OptNeg bit is zero: derive AppSKey and FNwkSIntKey from NwkKey, and set SNwkSIntKey and NwkSEncKey equal to FNwkSIntKey.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The rule means backward compatibility for 1.1 devices is not automatic — it must be implemented deliberately. If a supplier says "we are 1.1, compatible with 1.0", the correct question is: &lt;strong&gt;did you implement the OptNeg-zero fallback branch, and did you test it?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For clarity on the platform side, so projects do not discover it mid-way: &lt;strong&gt;ThinkLink currently supports LoRaWAN 1.0.2, 1.0.3, and 1.0.4, and does not support 1.1.&lt;/strong&gt; Devices destined for ThinkLink should be certified within the 1.0.x range. If a device is 1.1-only and lacks the fallback above, the join will fail — and the symptom is nearly indistinguishable from a wrong key, another case of "looks like a configuration problem, is actually a specification problem".&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Certification and regional parameters: "region" is an accounting concept
&lt;/h2&gt;

&lt;p&gt;The Alliance defines "region" explicitly in its fee rules: &lt;strong&gt;one region is one channel plan.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That definition carries a valuable concession for exporters: &lt;strong&gt;AS923-1, AS923-2, AS923-3, and AS923-4 count as one region if the same hardware supports them.&lt;/strong&gt; Multi-country deployments in Southeast Asia need not be priced as four.&lt;/p&gt;

&lt;p&gt;Regional parameters themselves are defined by RP002, maintained separately from TS001. The current edition is RP002-1.0.5. Two consequences:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Certification is tested against TS001-1.0.4, but the concrete numbers — channels, power, duty cycle — come from RP002, so both documents must align;&lt;/li&gt;
&lt;li&gt;RP002 versions independently. A new edition does not automatically force re-certification, but if it changes the limits for your region, it needs assessment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Chinese projects carry one further layer: the usable bands, sub-band split, and EIRP ceilings for CN470 come from domestic radio regulations, not from the Alliance alone. Running on CN470 requires the LoRaWAN certificate &lt;em&gt;and&lt;/em&gt; domestic type approval and frequency-use requirements. The two tracks run in parallel and never substitute for each other.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. What the certificate is good for, and what it is not
&lt;/h2&gt;

&lt;p&gt;This is the most practical section. The same certificate is used in three completely different ways.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For device vendors&lt;/strong&gt;, it is an entry ticket, not a performance claim. It tells distributors, integrators, and tender evaluators at a glance that the MAC layer is spec-conformant. It tells nobody how far the device reaches, how many years the battery lasts, or whether the enclosure survives condensation. Those come from datasheets, test reports, and field pilots. Marketing the certificate as a quality endorsement backfires badly the first time a site fails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For integrators&lt;/strong&gt;, it is the first filter on suppliers — but check four fields:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Specification version (should be TS001-1.0.4);&lt;/li&gt;
&lt;li&gt;Region list covered (is your project's band in it?);&lt;/li&gt;
&lt;li&gt;Certificate type (full end-device certification, or CbS via an embedded certified module — different strength of claim);&lt;/li&gt;
&lt;li&gt;Remaining validity of the parent certificate (any link in the CbS chain expiring weakens the claim).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;For asset owners and tender issuers&lt;/strong&gt;, how you write the requirement matters more than the requirement itself. "Must hold LoRaWAN certification" is insufficient, because a supplier can answer a Chinese CN470 project with a certificate covering European bands. A better formulation locks three things at once: &lt;strong&gt;specification version + covered region/channel plan + validity period&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Equally important is knowing the three gaps certification does &lt;strong&gt;not&lt;/strong&gt; cover:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It does not cover coverage.&lt;/strong&gt; Certification tests protocol behaviour under shielded or conducted conditions, not how many walls your building has.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not cover battery life.&lt;/strong&gt; Power characteristics are not a certification test case.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not cover application-layer semantics.&lt;/strong&gt; Certification guarantees MAC interoperability, not that two vendors agree on what a given byte means. Port assignment, payload layout, downlink configuration encoding — all of that is platform-side adaptation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10. If certification is voluntary, why does it become mandatory in practice
&lt;/h2&gt;

&lt;p&gt;LoRaWAN certification is, in nature, a &lt;strong&gt;voluntary&lt;/strong&gt; industry interoperability certification — the Alliance positions it that way. But "voluntary" describes the protocol layer, not commercial reality. It becomes de facto mandatory along three paths:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Tender documents cite it.&lt;/strong&gt; The moment a client writes "must hold LoRaWAN certification" into qualification clauses, it is mandatory for bidders. This is the most common path.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Platform or operator admission.&lt;/strong&gt; Some network operators require certification in their onboarding list before service activation. This is the ecosystem gate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;National regulation cites it.&lt;/strong&gt; Rarest, but when it happens it is binding. According to industry press, Brazil's ANATEL issued Ordinance No. 882/2026 in May 2026, writing LoRaWAN 1.1.1 into type-approval requirements for grid IoT equipment — grid-monitoring gateways, smart meters, distribution-side sensors — with a compliance deadline of 30 September 2026 and no transition period for legacy firmware.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The third path deserves attention from anyone exporting: &lt;strong&gt;a "voluntary" protocol certification can be made an admission condition by a national regulator.&lt;/strong&gt; And what gets cited tends to be the newest version, not the version with the largest installed base. Your specification-version choice therefore cannot rest only on "what the client uses today" — it has to account for "what the target market will require next year".&lt;/p&gt;

&lt;h2&gt;
  
  
  11. Failure points and pre-testing: where the savings really are
&lt;/h2&gt;

&lt;p&gt;The least controllable cost in certification is re-testing. One failure typically means remediation, requeueing, and another round of lab fees — and the schedule doubles.&lt;/p&gt;

&lt;p&gt;Publicly documented failures cluster on the RF side:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Failure type&lt;/th&gt;
&lt;th&gt;Typical criterion&lt;/th&gt;
&lt;th&gt;Common root cause&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Conducted spurious emissions&lt;/td&gt;
&lt;td&gt;Insufficient margin on out-of-band and harmonics&lt;/td&gt;
&lt;td&gt;Poor PA output matching, missing filtering, overlong PCB traces&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequency error&lt;/td&gt;
&lt;td&gt;Beyond ±20 ppm&lt;/td&gt;
&lt;td&gt;TCXO without temperature compensation calibration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Modulation quality&lt;/td&gt;
&lt;td&gt;EVM above 12.5%&lt;/td&gt;
&lt;td&gt;Modulation chain distortion, inadequate supply decoupling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Downlink packet error rate&lt;/td&gt;
&lt;td&gt;PER above 5%&lt;/td&gt;
&lt;td&gt;Insufficient receive sensitivity, receive-window timing offset&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What these share: &lt;strong&gt;one session in a shielded room finds them, but finding them in the certification queue costs ten times more.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is the real value of the free LCTT licence — not the money, but &lt;strong&gt;moving discovery to your own desk&lt;/strong&gt;. On the ATL route it is a pre-test tool, built for debugging; on the self-test route it produces the submitted results, which makes internal repetition before submitting even more important.&lt;/p&gt;

&lt;p&gt;One scheduling lesson: there is no ATL in mainland China, so samples leave the country. Logistics, customs, and return shipping often consume more time than testing itself. When planning, add all three — lab queue, round-trip logistics, one remediation cycle. The upper end of that 8–16 week range is the more realistic figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  12. Decision checklists for three roles
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;If you are a device vendor&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fix the specification version (current baseline TS001-1.0.4) and target region list at product-definition stage, not after the prototype is done;&lt;/li&gt;
&lt;li&gt;Prefer "certified module + CbS" to shrink the certification scope to final-product RF and antenna integration;&lt;/li&gt;
&lt;li&gt;Put LCTT into routine CI, running pre-tests on every release instead of saving them for submission;&lt;/li&gt;
&lt;li&gt;Maintain a pre-release compliance checklist; escalate review the moment an OTA change touches RF behaviour or regional parameters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;If you are a systems integrator&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ask for four items every time: specification version, region list, certificate type, remaining validity;&lt;/li&gt;
&lt;li&gt;For "embeds a certified module" claims, request the parent certificate holder and certificate number, and confirm membership status;&lt;/li&gt;
&lt;li&gt;Treat the certificate as a &lt;strong&gt;floor&lt;/strong&gt;, not a ceiling — coverage, battery life, and ingress protection still need independent verification.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;If you are an asset owner or tender issuer&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Do not write only "must hold certification"; write "must conform to TS001-1.0.4, with region coverage matching the channel plan used in this project, and a certificate within its validity period";&lt;/li&gt;
&lt;li&gt;At acceptance, verify that the firmware version actually running matches the version declared on the certificate — reconfirm anything changed by OTA;&lt;/li&gt;
&lt;li&gt;State explicitly which metrics certification does not cover, and put them in separate acceptance clauses.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Device certification, at its core, turns "interoperability" from a promise into a verifiable record.&lt;/p&gt;

&lt;p&gt;Its value is not that it makes a device work better. It is that it makes &lt;strong&gt;replacement&lt;/strong&gt; controllable — change the network server, the operator, the integrator, and the device does not have to change with them. That is what the certificate actually sells: reduced lock-in, not improved performance.&lt;/p&gt;

&lt;p&gt;And precisely because it proves interoperability rather than quality, the thing to worry about when buying is not "is there a certificate" but "does the certificate cover this project". A certificate for 1.0.3 covering only EU868, presented in a CN470 tender, is legally valid and technically useless.&lt;/p&gt;

&lt;p&gt;One closing observation: the voluntary boundary of certification is being tightened, increment by increment, by tender documents and national regulations. Today it is a differentiator; tomorrow it may be an admission requirement. Getting the version and region right beforehand costs an order of magnitude less than retrofitting them afterwards.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Official references&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LoRa Alliance certification: &lt;a href="https://lora-alliance.org/lorawan-certification" rel="noopener noreferrer"&gt;https://lora-alliance.org/lorawan-certification&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;ThinkLink documentation (LoRaWAN knowledge base): &lt;a href="https://www.think-link.net/docs/en/Knowledge/index.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Knowledge/index.html&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>hardware</category>
      <category>iot</category>
      <category>networking</category>
    </item>
    <item>
      <title>The Five-Layer Funnel for LoRaWAN Troubleshooting: From "No Data in the Cloud" to "The Numbers Are Wrong"</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Mon, 02 Nov 2026 07:59:41 +0000</pubDate>
      <link>https://dev.to/manthink/the-five-layer-funnel-for-lorawan-troubleshooting-from-no-data-in-the-cloud-to-the-numbers-are-p58</link>
      <guid>https://dev.to/manthink/the-five-layer-funnel-for-lorawan-troubleshooting-from-no-data-in-the-cloud-to-the-numbers-are-p58</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F842a8x68p4e3v8hqprit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F842a8x68p4e3v8hqprit.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Currency note: figures in this article are converted at the October 2026 reference rate of 1 USD ≈ 6.71 CNY and 1 EUR ≈ 7.88 CNY. Original quote currencies are preserved; CNY amounts are conversions.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The most expensive thing in a troubleshooting session is not a missing tool. It is guessing.&lt;/p&gt;

&lt;p&gt;The symptom is one sentence: "The device is offline." That sentence can mean five completely different things. The gateway lost power. The gateway is online but hears no radio frames. Frames arrive but decryption fails. Decryption succeeds but the parser errors out. Parsing succeeds but the data never reaches storage or the outbound channel.&lt;/p&gt;

&lt;p&gt;These five causes live in five different layers. They require different tools, different screens, and different evidence. Without an order, troubleshooting degenerates into refreshing every page once and then changing whichever setting looks most suspicious — then finding it did not help, then trying the next one.&lt;/p&gt;

&lt;p&gt;The funnel replaces guessing with elimination. Each layer answers exactly one question. Yes moves you down; no stops you there. Five layers in, the fault is pinned to a single cell. No luck required.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The funnel at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Question to answer&lt;/th&gt;
&lt;th&gt;Where to look&lt;/th&gt;
&lt;th&gt;Key criterion&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Is the gateway online&lt;/td&gt;
&lt;td&gt;Operations → Gateway Management&lt;/td&gt;
&lt;td&gt;Whether online status, heartbeat time, and total online time agree&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Did the gateway hand frames to the NS&lt;/td&gt;
&lt;td&gt;Network Data → NS Data&lt;/td&gt;
&lt;td&gt;Whether records can be found by DevEUI or DevAddr&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Did the NS decrypt successfully&lt;/td&gt;
&lt;td&gt;Network Data → AS Data&lt;/td&gt;
&lt;td&gt;Whether an application-layer packet exists at the same moment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Did the thing model parse it&lt;/td&gt;
&lt;td&gt;Application Data → Realtime Data / Device → Telemetry&lt;/td&gt;
&lt;td&gt;Whether values and timestamps are advancing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Where did the parsed data go&lt;/td&gt;
&lt;td&gt;Forward whitelist, raw retention switch, subscriber&lt;/td&gt;
&lt;td&gt;Dropped, filtered, or never subscribed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The third column of each row is more important than it looks: &lt;strong&gt;what a false conclusion at this layer costs you.&lt;/strong&gt; Most troubleshooting disasters are not caused by missing a symptom. They are caused by seeing a symptom, attributing it to the wrong layer, and breaking a configuration that was fine. The classic version: turning off ADR to "make data come up faster," and blowing the power budget of a battery device in the process.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Layer 1: Is the gateway online
&lt;/h2&gt;

&lt;p&gt;Open &lt;strong&gt;Operations → Gateway Management&lt;/strong&gt;. Each row shows location, type, online status, enabled status, hardware version, firmware version, LoRa standard, &lt;strong&gt;total online time, heartbeat time, and update time&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Most people read the online status column only. That is the most deceptive column on the page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Read the three time fields together
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Heartbeat time&lt;/strong&gt;: when the gateway last reported a heartbeat&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Total online time&lt;/strong&gt;: cumulative time online&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update time&lt;/strong&gt;: when this record was last modified&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A gateway can show "online" while its heartbeat time stopped forty minutes ago. The default heartbeat period is 60 seconds. Forty minutes without a heartbeat means it has done nothing for forty minutes — the platform simply has not met the condition to mark it offline yet. Being marked offline requires a time condition to be satisfied; it is not a "last message received" flag.&lt;/p&gt;

&lt;p&gt;Conversely, a very short total online time with an advancing heartbeat time means the gateway is repeatedly dropping and reconnecting. That is the signature of a power or network problem, not a radio problem.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Criterion: the gap between heartbeat time and now should be smaller than twice the heartbeat period. If the gap is larger while the status still reads online, stop trusting that column and read the heartbeat time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Three definitions of "online," not interchangeable
&lt;/h3&gt;

&lt;p&gt;This has to be settled before anything else. ThinkLink exposes at least three different online signals with different algorithms and different boundaries:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Algorithm and boundary&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;API &lt;code&gt;online&lt;/code&gt; field&lt;/td&gt;
&lt;td&gt;Treated as online when heartbeat is empty; when non-empty, computed from activity time and twice the heartbeat, missing activity time counts as offline, and an exactly-equal deadline no longer counts as online&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;server_attrs._online&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Numeric 1 online, 0 offline; with an empty heartbeat and the feature enabled it stays 1 with no timeout task; with a non-empty heartbeat it only goes offline when the current time &lt;strong&gt;strictly exceeds&lt;/strong&gt; &lt;code&gt;active_time + 2 × heart_period&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MQTT &lt;code&gt;data.online&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;A boolean &lt;strong&gt;state-change notification&lt;/strong&gt;; asynchronous propagation has latency; it is neither a full state snapshot nor an alarm event&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each path gets used somewhere: dashboard display, statistics, automation. Mixing them produces a very concrete failure. Your dashboard reads &lt;code&gt;server_attrs._online&lt;/code&gt;, your alarm rule reads API &lt;code&gt;online&lt;/code&gt;, the two disagree, and you conclude the data is wrong — when in fact only the definitions differ.&lt;/p&gt;

&lt;p&gt;One more trap: &lt;strong&gt;after offline notification is disabled, &lt;code&gt;_online&lt;/code&gt; retains its last value.&lt;/strong&gt; A leftover 0 or 1 is not evidence of the current state. Reading 1 and concluding the device is alive is wrong.&lt;/p&gt;

&lt;h3&gt;
  
  
  If the gateway is offline, separate "no power" from "no network"
&lt;/h3&gt;

&lt;p&gt;Three platform-side checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ping&lt;/strong&gt;: one of the dedicated operations for ManThink-type gateways, confirming reachability of the platform-to-gateway path&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edit → IP address&lt;/strong&gt;: the gateway reports its current IP when it comes online; this field lets you confirm its real network address and detect a changed IP or a move to another subnet&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status trend&lt;/strong&gt;: shows the online/offline curve over a chosen range so you can locate when the drop started. Its value is separating "always dropping" from "started dropping at time X" — the latter lines up directly with construction work, power cuts, lightning, or hardware swaps&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If Ping fails and the IP is stale or empty, the problem is on the gateway side or on the path to the server, not in the platform. Adjusting platform settings at this point is wasted effort.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Layer 2: Did the gateway hand frames to the NS
&lt;/h2&gt;

&lt;p&gt;This is &lt;strong&gt;Network Data → NS Data&lt;/strong&gt;. You are looking at raw LoRaWAN frames together with frequency, RSSI, SNR, and data rate.&lt;/p&gt;

&lt;p&gt;The decisive detail is &lt;strong&gt;which identifier you search with&lt;/strong&gt;. Get this wrong and you will conclude "the NS received nothing" when it received plenty:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Search field&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Device has never joined, or was just reset&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;DevEUI&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Join Request / Join Accept frames are identified by DevEUI; no DevAddr exists yet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Device has joined and reports normally&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;DevAddr&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;After joining, all data frames use a dynamically assigned DevAddr, never the DevEUI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A factory-fresh device returns nothing for its DevEUI and nothing for its DevAddr — it has no DevAddr yet. A healthy running device returns nothing for its DevEUI on ordinary uplinks, because those frames carry the DevAddr. Neither empty result is a fault. Both are a search on the wrong key.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Criterion: &lt;strong&gt;NS has data → the problem is above the NS (start at layer 3). NS has no data → the problem is radio or backhaul, not the platform.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When NS has no data, the directions are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is the device even transmitting (device-side log via serial or vendor tool)&lt;/li&gt;
&lt;li&gt;Are the frequencies right (device channel plan versus gateway regional standard)&lt;/li&gt;
&lt;li&gt;Distance and obstruction (RSSI and SNR — but only meaningful once at least one frame arrives; with zero frames there is no signal to read)&lt;/li&gt;
&lt;li&gt;Is the gateway backhaul working (whether UDP 1700 is open — covered separately below, it is the single most common trap)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  4. Layer 3: Did the NS decrypt successfully
&lt;/h2&gt;

&lt;p&gt;This is &lt;strong&gt;Network Data → AS Data&lt;/strong&gt;. AS data is what the NS emits after &lt;strong&gt;decrypting and deframing&lt;/strong&gt; the LoRaWAN frame: LoRaWAN encryption is gone, but &lt;code&gt;userdata.payload&lt;/code&gt; is still the Base64-encoded application payload, not yet parsed by the thing model.&lt;/p&gt;

&lt;p&gt;This layer carries the most diagnostic information of the five. An AS uplink looks like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;{ "if": "loraWAN", "type": "data", "moteeui": "6353012af1090498", "version": "3.0", "gwrx": [ { "eui": "5a53012501030056", "chan": 0, "lsnr": 14.2, "rfch": 0, "rssi": -21, "time": "2025-09-24T07:07:03.807677Z", "tmst": 1152383989 } ], "moteTx": { "codr": "4/5", "datr": "SF7BW125", "freq": 470.9, "modu": "LORA" }, "userdata": { "port": 11, "class": "ClassA", "seqno": 27464, "payload": "IQcDDG4BAADaBB0C538J", "confirmed": false } }&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every field has a specific diagnostic job:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Diagnostic use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;moteeui&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Confirms which device sent it, ruling out a mistyped EUI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gwrx[]&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Every gateway that heard the frame, with per-gateway RSSI / LSNR. With multiple receivers, take the best RSSI as the link-quality reference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;gwrx[].chan&lt;/code&gt; / &lt;code&gt;rfch&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Channel number and RF chain. Misconfigured frequencies surface here&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;gwrx[].lsnr&lt;/code&gt; / &lt;code&gt;rssi&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;SNR and signal strength. SNR is the real LoRa margin metric; RSSI is only a reference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;moteTx.datr&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Data rate, e.g. &lt;code&gt;SF7BW125&lt;/code&gt;. If ADR is broken, this sticks at the lowest rate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;moteTx.freq&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Uplink frequency. A mismatch with the gateway channel plan is a frequency problem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;userdata.port&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;FPort, distinguishing business channels&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;userdata.seqno&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Device frame counter. &lt;strong&gt;This is how you diagnose retransmission and loss&lt;/strong&gt; — contiguous counters with uneven spacing mean retries; gaps mean real loss&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;userdata.payload&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Base64 application payload; exactly what the thing-model script consumes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  NS has data, AS is empty: only three possibilities
&lt;/h3&gt;

&lt;p&gt;The official decision table is refreshingly blunt:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Likely cause&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;NS has data, AS empty&lt;/td&gt;
&lt;td&gt;LoRaWAN key mismatch (AppKey / AppSKey / NwkSKey)&lt;/td&gt;
&lt;td&gt;Verify the keys in the profile against what is burned into the device&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NS has data, AS empty&lt;/td&gt;
&lt;td&gt;No device profile, or &lt;code&gt;enable&lt;/code&gt; is false&lt;/td&gt;
&lt;td&gt;Create the profile and confirm &lt;code&gt;enable&lt;/code&gt; is on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AS has data&lt;/td&gt;
&lt;td&gt;Decryption succeeded; go to layer 4&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The "&lt;code&gt;enable&lt;/code&gt; is false" case is especially sneaky. It raises no error. The NS simply does not respond, which from the outside is indistinguishable from a wrong key. And it is a &lt;strong&gt;silent switch&lt;/strong&gt;: the profile exists, the keys exist, nothing takes effect.&lt;/p&gt;

&lt;p&gt;One more easily missed constraint: &lt;strong&gt;a given device profile should be enabled on exactly one platform (Cloud / TKG / TKE) at a time&lt;/strong&gt;, otherwise join conflicts follow. A profile left enabled in the cloud while the device is also commissioned into an edge server means two NS instances competing for the same DevAddr. The symptom is "works, then does not, then works" — far harder to chase than a clean failure.&lt;/p&gt;

&lt;h3&gt;
  
  
  FPort is more than a business category
&lt;/h3&gt;

&lt;p&gt;Several FPorts are conventional on the platform:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;FPort&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;51&lt;/td&gt;
&lt;td&gt;Pass-through: raw bytes forwarded as-is&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;201&lt;/td&gt;
&lt;td&gt;Firmware OTA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;209&lt;/td&gt;
&lt;td&gt;Heartbeat, used to confirm device liveness&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;214&lt;/td&gt;
&lt;td&gt;Parameter configuration and readback&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A packet on port 209 is a heartbeat, not business data — its payload contains none of your measurement points. A thing-model script without a per-port branch will happily parse a heartbeat as sensor data and emit nonsense. This is a common source of "one field occasionally turns into a weird number."&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Layer 4: Did the thing model parse it
&lt;/h2&gt;

&lt;p&gt;Two entry points: &lt;strong&gt;Application Data → Realtime Data&lt;/strong&gt;, and &lt;strong&gt;Device detail → Telemetry tab&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Telemetry in the device detail is grouped by thing model and shows every field from the most recent parse together with a timestamp. It updates by MQTT push, so no manual refresh is needed. That makes it a good liveness probe: stare at it for three minutes. If neither values nor timestamps move, parsing has stopped. If the timestamp advances but a specific field is empty, that field is simply never assigned by the script.&lt;/p&gt;

&lt;h3&gt;
  
  
  AS has data, realtime data is empty: only two causes
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Likely cause&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AS has data, realtime empty&lt;/td&gt;
&lt;td&gt;No thing model bound to the device&lt;/td&gt;
&lt;td&gt;Bind one in model management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AS has data, realtime empty&lt;/td&gt;
&lt;td&gt;Parser script error&lt;/td&gt;
&lt;td&gt;Open the editor and &lt;strong&gt;feed the AS payload in manually&lt;/strong&gt; to debug&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AS has data, some fields empty&lt;/td&gt;
&lt;td&gt;Script does not cover that FPort or field&lt;/td&gt;
&lt;td&gt;Inspect the branch for that port&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That middle row — manually feeding the payload — is the highest-leverage action in the entire troubleshooting system. Script errors, a &lt;code&gt;null&lt;/code&gt; return, a wrongly shaped object: in the overwhelming majority of cases you can reproduce them by pasting a Base64 string. No site visit, no restart.&lt;/p&gt;

&lt;h3&gt;
  
  
  Three fixed traps in the script layer
&lt;/h3&gt;

&lt;p&gt;Three things reliably produce "it will not parse":&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, the only output channel is the return value.&lt;/strong&gt; Scripts run in a restricted sandbox: no &lt;code&gt;console.log&lt;/code&gt;, no &lt;code&gt;async&lt;/code&gt;, and a 1000 ms execution ceiling. Every result, every diagnostic, must come out through &lt;code&gt;return&lt;/code&gt;. Anyone expecting print-based debugging sees "nothing was output" and wrongly concludes "the script never ran."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, the payload comes from &lt;code&gt;msg.userdata.payload&lt;/code&gt; and it is Base64.&lt;/strong&gt; Treat it as a string and you get mojibake instead of bytes. Decode it first, then read by byte offset.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Third, a script existing does not mean the mapping is done.&lt;/strong&gt; Written, saved, no error — none of that proves the field reached telemetry. The only proof is a value visible in the Telemetry tab. These are separate states on the platform, and conflating them produces endless loops between "but I wrote it" and "but there is no data."&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Layer 5: Where did the data go
&lt;/h2&gt;

&lt;p&gt;At this point AS has packets and telemetry has values, yet downstream still says it received nothing. The problem is no longer acquisition. It is the &lt;strong&gt;data egress&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Egress 1: the raw retention switch
&lt;/h3&gt;

&lt;p&gt;One easily misread symptom: &lt;strong&gt;the AS Data page is empty while telemetry is perfectly fine.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is not a contradiction. Raw packet retention must be enabled separately via the device's &lt;code&gt;real_time_storage&lt;/code&gt; switch. When it is off, the NS still receives, decrypts, runs the thing model, and writes telemetry — the whole chain works — it simply keeps no raw copy at that layer.&lt;/p&gt;

&lt;p&gt;So "nothing on the AS page" has two entirely different meanings: no signal came in, or signal came in but was not archived. The discriminator is trivial — check whether telemetry has values. Values present means retention is off. No values means a link problem.&lt;/p&gt;

&lt;h3&gt;
  
  
  Egress 2: the forward whitelist
&lt;/h3&gt;

&lt;p&gt;Since 2.00.066, server attributes and shared attributes are &lt;strong&gt;not forwarded by default&lt;/strong&gt;; only fields explicitly checked for forwarding are sent. The intent is to keep irrelevant fields from flooding MQTT, but the side effect is: you add a server attribute, see a value in the UI, and the MQTT side never receives it — because it was never checked.&lt;/p&gt;

&lt;p&gt;Similarly, when the target broker disconnects there is &lt;strong&gt;no buffering and no replay&lt;/strong&gt;, and no exactly-once guarantee. A forwarder is not a message queue; it is a realtime channel. Data produced during those few minutes while the subscriber restarts is simply gone.&lt;/p&gt;

&lt;h3&gt;
  
  
  Egress 3: the subscriber's own problems
&lt;/h3&gt;

&lt;p&gt;The most common sentence on the MQTT side is "I subscribed but there is no data." Three fixed causes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;{tenant}&lt;/code&gt; was never replaced with the organization account.&lt;/strong&gt; Topics look like &lt;code&gt;/v32/{tenant}/as/up/data/#&lt;/code&gt;, where &lt;code&gt;{tenant}&lt;/code&gt; is a placeholder, not a literal. Copy it verbatim and you connect fine, subscribe fine, and receive nothing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subscribed to the parsed topic while the device has no forwarding configured.&lt;/strong&gt; &lt;code&gt;tkl/up/telemetry/#&lt;/code&gt; is parsed; &lt;code&gt;as/up/data/#&lt;/code&gt; is raw. They draw from different sources, and data on one says nothing about the other&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Received, then dropped by a script.&lt;/strong&gt; A forwarding script that returns &lt;code&gt;null&lt;/code&gt; discards the message. That is the correct way to filter, and also the most common invisible failure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One version note worth remembering: &lt;strong&gt;registering a subscription is not the same as subscribing successfully&lt;/strong&gt; — only a SUBACK counts. Since 2.00.070 this semantics is explicit, yet in the field many still treat "shown as configured in the UI" as "receiving data."&lt;/p&gt;

&lt;h3&gt;
  
  
  False empties introduced by paginated loading
&lt;/h3&gt;

&lt;p&gt;Since 2.00.075, configuration, attributes, and telemetry load separately on demand. After switching tabs, wait for a successful load before editing and saving — &lt;strong&gt;unloaded fields must not be treated as empty values&lt;/strong&gt;. MQTT messages may likewise carry only a subset of whitelisted attributes; receivers should merge by field rather than overwrite whole groups.&lt;/p&gt;

&lt;p&gt;Together these two facts produce an awkward class of failure: a save writes an empty value into a field that had simply not loaded, or a receiver overwrites complete state with a partial message. The visible symptom is "a setting reverted itself," and it is hard to reproduce.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. The on-site trio: diagnosing without the platform
&lt;/h2&gt;

&lt;p&gt;The platform answers "which layer is broken." The field answers "why is that layer broken." Three things are enough.&lt;/p&gt;

&lt;h3&gt;
  
  
  One: the gateway's local web console
&lt;/h3&gt;

&lt;p&gt;GD6 series gateways use the gwTool6 web console. Key entry points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ethernet defaults to DHCP&lt;/strong&gt;; on the same subnet, browse straight to the gateway IP&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Wi-Fi AP SSID is &lt;code&gt;GD6-&amp;lt;Gateway EUI&amp;gt;&lt;/code&gt;&lt;/strong&gt;, falling back to &lt;code&gt;LGW-Config&lt;/code&gt; only when no valid EUI exists&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Factory AP password and web password are both &lt;code&gt;wifi!0804&lt;/code&gt;&lt;/strong&gt;, managed independently; change them on first login&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With no network on site, joining that hotspot from a phone is the fastest route into the console. Note the condition: the hotspot must actually appear and accept connections to count — "shown as enabled in the UI" does not.&lt;/p&gt;

&lt;p&gt;The Radio page frequencies, the NS page server address and ports, and the "save and restart to apply" confirmation all live here. One operational detail deserves writing down: &lt;strong&gt;the "submit" button at the bottom of the page is what saves Radio, whereas the NS page uses "save and restart," and after the service recovers you must reload to verify.&lt;/strong&gt; Skip the reload and you are reading the form's old values, not the device's current ones.&lt;/p&gt;

&lt;p&gt;While on the subject, one boundary specific to GD62: &lt;strong&gt;it has no external REC button.&lt;/strong&gt; Any "hold REC for about two seconds" recovery procedure does not apply to that unit. Factory reset goes through the support procedure; afterwards the web password returns to &lt;code&gt;wifi!0804&lt;/code&gt; while &lt;strong&gt;a previously written Gateway EUI is retained.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Two: an MQTT client
&lt;/h3&gt;

&lt;p&gt;Whether mosquitto_sub, MQTTX, or your own script, subscribing once to &lt;code&gt;/v32/{tenant}/as/up/data/#&lt;/code&gt; shows you every device's raw uplink directly. It is the fastest way to answer "is anything actually flowing," much faster than paging through the UI.&lt;/p&gt;

&lt;p&gt;Watch three things: whether packets appear at all, whether &lt;code&gt;moteeui&lt;/code&gt; is the device you care about, and whether &lt;code&gt;userdata.seqno&lt;/code&gt; advances contiguously. That last one instantly separates "the device never sent" from "the device sent and it never arrived."&lt;/p&gt;

&lt;h3&gt;
  
  
  Three: a site visit you can actually price
&lt;/h3&gt;

&lt;p&gt;Troubleshooting time has a quantifiable cost. A single site visit (labour plus travel) runs roughly 300–800 CNY in a tier-one Chinese city, and roughly 150–400 USD (≈ 1,000–2,700 CNY) overseas at published service rates. The point is not precision. The point is that it puts a price on "can this be solved remotely": if a problem can be walked through all five layers remotely and pinned to one layer, the site visit becomes "go replace that part" instead of "go see what is wrong." The difference in elapsed time is typically half a day versus three days.&lt;/p&gt;

&lt;p&gt;The more expensive failure is misattribution. Disabling ADR to "make data come up faster" will blow a battery device's power budget within a week. Nothing shows on site. Three months later it surfaces as "the batteries do not last," and by then it is very hard to trace back to which setting changed.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Seven traps from real integration work
&lt;/h2&gt;

&lt;p&gt;These seven come from actual integration records, not theory. Their common shape: &lt;strong&gt;the symptom appears in the platform, the root cause sits outside it.&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Root cause&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No gateway UDP arrives at all&lt;/td&gt;
&lt;td&gt;Security group allows TCP only; UDP 1700 not opened&lt;/td&gt;
&lt;td&gt;Add an inbound rule for UDP 1700&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gateway packets rejected (illegal / single byte)&lt;/td&gt;
&lt;td&gt;Not using Semtech UDP, or a proprietary protocol&lt;/td&gt;
&lt;td&gt;Set &lt;code&gt;nsProtocol&lt;/code&gt; to &lt;code&gt;pkt_fwd&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Packets received but nothing goes uplink&lt;/td&gt;
&lt;td&gt;Leading space in &lt;code&gt;nsAddress&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Remove the space and restart the service&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gateway connects but frames are dropped&lt;/td&gt;
&lt;td&gt;Bridge prefix (region) does not match the device band&lt;/td&gt;
&lt;td&gt;Point the topic template at the correct sub-band&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Events on a third-party platform, no telemetry in ThinkLink&lt;/td&gt;
&lt;td&gt;Forwarder MQTT subscription silently dies after restart&lt;/td&gt;
&lt;td&gt;Re-save the forwarder to force a resubscribe&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uplink jitter and frequent retransmission&lt;/td&gt;
&lt;td&gt;Profile wrongly set to Class C + ADR + DevStatusReq, sending surplus downlinks to a battery-powered Class A device&lt;/td&gt;
&lt;td&gt;Set the profile to Class A, disable ADR and DevStatusReq&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AS Data page empty but telemetry normal&lt;/td&gt;
&lt;td&gt;Raw retention switch not enabled&lt;/td&gt;
&lt;td&gt;Enable &lt;code&gt;real_time_storage&lt;/code&gt; on the device&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first one deserves its own paragraph. UDP 1700 is the highest-frequency trap in all of LoRaWAN troubleshooting, and the easiest place to fail at "I am sure I configured it" — because local testing usually has no security group at all, and the problem only appears after moving to cloud. The same logic appeared in issue 24 on BACnet: the Docker inbound port list does not include 47808 or 502, and the installer neither maps nor allows them, producing "the platform says the service is running, the other side cannot even scan it." &lt;strong&gt;Always audit the port list separately. Never trust installer defaults.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The fifth trap belongs to the same family: the connection is up, the process is alive, the configuration is correct, and no data arrives. There is no error to read; the only test is "re-save it and see whether it recovers." It is a reminder that &lt;strong&gt;running and working are two different states.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Compressing the funnel into 20 minutes
&lt;/h2&gt;

&lt;p&gt;A real session does not require visiting every page. Work in time boxes:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;0–3 min: confirm the gateway.&lt;/strong&gt; Compare heartbeat time against now; check whether total online time has grown steadily over a long period. Ping once. If the gateway is offline, layers 2–5 are irrelevant.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3–8 min: confirm frames arrive.&lt;/strong&gt; On NS Data, search with the right key: DevEUI before join, DevAddr after. Finding it means radio and backhaul both work and the problem is above; not finding it sends you straight to frequencies and ports.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8–13 min: confirm decryption.&lt;/strong&gt; Search AS Data with the same identifier. Frames but no packets means the key or the profile's &lt;code&gt;enable&lt;/code&gt; flag — those are the only two options.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;13–17 min: confirm parsing.&lt;/strong&gt; Read Realtime Data and the device Telemetry tab together. An advancing timestamp means it is alive; if not, paste the AS payload into the script editor and run it by hand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;17–20 min: confirm egress.&lt;/strong&gt; Telemetry has values but downstream does not: check &lt;code&gt;real_time_storage&lt;/code&gt;, whether the forward whitelist boxes are ticked, and whether &lt;code&gt;{tenant}&lt;/code&gt; was substituted in the subscriber's topic.&lt;/p&gt;

&lt;p&gt;Twenty minutes, and the fault lands on a specific criterion. What remains is fixing, not finding.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. What this method actually solves
&lt;/h2&gt;

&lt;p&gt;The tools are unremarkable: five screens, one MQTT client, one gateway web console.&lt;/p&gt;

&lt;p&gt;What is not unremarkable is &lt;strong&gt;the order&lt;/strong&gt;. The same five screens read in the right order are elimination. Read in the wrong order they are sampling. Sampling conclusions depend on luck, and luck is never sufficient on a fault site.&lt;/p&gt;

&lt;p&gt;There is a secondary benefit. When you know exactly what proves each layer, you also know &lt;strong&gt;which observations cannot serve as conclusions&lt;/strong&gt;. "Online" does not prove working. "Configured" does not prove running. "The script exists" does not prove the mapping is done. "There is a value on the page" does not prove the data was sent. Each of those four sentences maps to a specific trap described above.&lt;/p&gt;

&lt;p&gt;The ceiling on troubleshooting skill is rarely about how many tools you know. It is about knowing which evidence does not count as evidence.&lt;/p&gt;




&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Issue 21, &lt;em&gt;ThinkLink Thing-Model Decoder Scripts in Practice: From Binary Payload to Readable Data&lt;/em&gt; — the deep dive for layer 4&lt;/li&gt;
&lt;li&gt;Issue 22, &lt;em&gt;ThinkLink Triggers and Alarm Rules in Practice&lt;/em&gt; — what happens after layer 5: turning data into notification&lt;/li&gt;
&lt;li&gt;Issue 26, &lt;em&gt;LoRaWAN Gateway Antenna Selection and Installation Guide&lt;/em&gt; — when layer 2 fails for lack of signal, start from the link budget&lt;/li&gt;
&lt;li&gt;Issue 27, &lt;em&gt;A/B Partitioning for LoRaWAN Gateway Firmware Updates&lt;/em&gt; — availability design on the gateway side&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Official documentation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Gateway Management: &lt;a href="https://www.think-link.net/docs/en/Maintenance/GatewayManagement.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Maintenance/GatewayManagement.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Device Management: &lt;a href="https://www.think-link.net/docs/en/Maintenance/DeviceManagement.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Maintenance/DeviceManagement.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;NS Data: &lt;a href="https://www.think-link.net/docs/en/Data/NetworkData/NSData.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Data/NetworkData/NSData.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;AS Data: &lt;a href="https://www.think-link.net/docs/en/Data/NetworkData/ASData.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Data/NetworkData/ASData.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;ThinkLink Protocol: &lt;a href="https://www.think-link.net/docs/en/Protocol/ThinkLinkProtocol.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Protocol/ThinkLinkProtocol.html&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>debugging</category>
      <category>iot</category>
      <category>networking</category>
    </item>
    <item>
      <title>LoRaWAN Gateway Antenna Selection and Installation Guide: Why 3 dBi Sometimes Beats 8 dBi</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Wed, 28 Oct 2026 09:37:38 +0000</pubDate>
      <link>https://dev.to/manthink/lorawan-gateway-antenna-selection-and-installation-guide-why-3-dbi-sometimes-beats-8-dbi-bkc</link>
      <guid>https://dev.to/manthink/lorawan-gateway-antenna-selection-and-installation-guide-why-3-dbi-sometimes-beats-8-dbi-bkc</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkcbi6qj84luto36c84ix.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkcbi6qj84luto36c84ix.png" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Currency note&lt;/strong&gt;: USD figures are quoted as originally published. Reference conversion for October 2026: 1 USD ≈ 6.71 CNY. Prices marked "reference price" are subject to the manufacturer's current quotation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Two LoRaWAN projects, less than three kilometres apart, using the same gateway model, the same batch of meters and the same ThinkLink tenant. One reaches a basement water meter 2.4 km away with -118 dBm and -12 dB still in hand. The other starts dropping packets 300 m away inside a single building — and went back to site three times.&lt;/p&gt;

&lt;p&gt;The difference was not the gateway and it was not the platform. One project put the antenna on a ten-metre mast on the roof with the stock 3 dBi omnidirectional whip. The other bought a "higher gain" 8 dBi antenna and screwed it onto a server cabinet — a metal cabinet, with the base of the antenna buried in a cable tray.&lt;/p&gt;

&lt;p&gt;The antenna is the part of a LoRaWAN deployment most often treated as an accessory, and it is the one variable in the link budget that routinely moves it by 10 dB. Gateway transmit power is fixed: GD73 is rated at a maximum of 27 dBm for the &lt;code&gt;-1&lt;/code&gt; suffix and 22 dBm for the &lt;code&gt;-2&lt;/code&gt; suffix (±2 dBm deviation); GD61x and GD62 are 22 dBm maximum for the &lt;code&gt;-2&lt;/code&gt; suffix. Receiver sensitivity is fixed too: these gateways are all specified at &lt;strong&gt;-141 dBm (SF12, BW 125 kHz)&lt;/strong&gt;. If both ends of the budget are given, where do the remaining decibels come from?&lt;/p&gt;

&lt;p&gt;From the antenna, and from where you put it. This article works through the numbers.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Start with the band: the wrong antenna is the first line on the trouble ticket
&lt;/h2&gt;

&lt;p&gt;Official frequency ranges for ManThink gateways:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Region&lt;/th&gt;
&lt;th&gt;Frequency range&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CN470&lt;/td&gt;
&lt;td&gt;470–510 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EU433&lt;/td&gt;
&lt;td&gt;433–434 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EU868&lt;/td&gt;
&lt;td&gt;863–870 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AS923&lt;/td&gt;
&lt;td&gt;920–928 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;US902 / US915&lt;/td&gt;
&lt;td&gt;902–928 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AU915&lt;/td&gt;
&lt;td&gt;915–928 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The documentation states three hard constraints about antennas, and the wording is worth quoting verbatim:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GD61x user guide, step 4: &lt;strong&gt;"Confirm the antenna frequency band matches the gateway's regional version."&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Note under the GD62 (IP67) specification table: &lt;strong&gt;"The RF region must be consistent with the hardware, antenna and end-device configuration."&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;GD62 pre-installation notes: &lt;strong&gt;"Connect the LoRa antenna before powering on. Do not start LoRa transmission with no antenna connected."&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These cover three different things.&lt;/p&gt;

&lt;p&gt;The first is that the antenna's own frequency range must cover the region the gateway operates in. A whip marked 433 MHz connected to a CN470 gateway is off resonance by roughly 40 MHz, and the VSWR collapses accordingly.&lt;/p&gt;

&lt;p&gt;The second is system-level consistency: the gateway's RF hardware version, the antenna and the end devices must all sit in the same region. The mistake usually happens in procurement — a project specified for CN470 ships with an EU868 unit, and nobody notices until nothing joins. The symptom looks exactly like a broken antenna.&lt;/p&gt;

&lt;p&gt;The third is a safety constraint, and it is the one installers skip most often: &lt;strong&gt;never transmit with no antenna connected.&lt;/strong&gt; Almost all of the front-end output power reflects back into the power amplifier, and the output stage of a concentrator like the SX1301/SX1302 is not designed to absorb it. "Gateway powered up and never demodulated another packet again" traces back to exactly this — mains plugged in before the antenna was tightened.&lt;/p&gt;

&lt;p&gt;So step one is not comparing parameters. Step one is &lt;strong&gt;checking&lt;/strong&gt;: the RF region on the rating plate, the frequency range printed on the antenna label, and the regional configuration on the end devices. All three must agree before anything else happens.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Three things that matter more than the gain number
&lt;/h2&gt;

&lt;p&gt;An off-the-shelf LoRa antenna label usually shows gain, VSWR, polarization and connector type. Buyers look at the first line. The other three decide whether the deployment works.&lt;/p&gt;

&lt;h3&gt;
  
  
  The unit trap: dBi vs dBd
&lt;/h3&gt;

&lt;p&gt;Antenna gain uses one of two reference bases: dBi references an ideal isotropic radiator, dBd references a half-wave dipole. The conversion is fixed:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;0 dBd = 2.15 dBi&lt;br&gt;
dBi value = dBd value + 2.15&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The same physical antenna labelled 5 dBi or 2.85 dBd is the same antenna. Compare two products without normalising units and you invent 2.15 dB out of nothing — which, by the worked example in section 4, is roughly 18% of coverage radius appearing and then disappearing again.&lt;/p&gt;

&lt;h3&gt;
  
  
  Gain is not amplification, it is redistribution
&lt;/h3&gt;

&lt;p&gt;This has to be understood before any selection is made. A passive antenna generates no energy; gain comes from concentrating radiation into preferred directions at the expense of others. For an omnidirectional antenna, that means &lt;strong&gt;flattening the vertical lobe&lt;/strong&gt;, paid for with nulls directly above and below the antenna.&lt;/p&gt;

&lt;p&gt;A 2 dBi omnidirectional antenna typically has a vertical half-power beamwidth of 60–80 degrees. Push it to 6–8 dBi and that may drop to 15–25 degrees. This is the physical reason behind "high-gain antenna on the roof, nothing works on the floor below" — the antenna is doing exactly what it was designed to do, which is send energy to the horizon.&lt;/p&gt;

&lt;p&gt;Indoor scenarios are worse. A gateway antenna flush-mounted to the ceiling of a 3 m machine room, with end devices spread from basement to third floor, will favour the middle floor with a high-gain whip while the top and bottom get weaker than they would with a 2 dBi one.&lt;/p&gt;

&lt;h3&gt;
  
  
  VSWR measures how much energy never leaves
&lt;/h3&gt;

&lt;p&gt;VSWR describes the impedance match between antenna and feeder. Ideal is 1.0. The usual engineering reading is:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;VSWR&lt;/th&gt;
&lt;th&gt;Reading&lt;/th&gt;
&lt;th&gt;Return loss&lt;/th&gt;
&lt;th&gt;Mismatch loss&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;≤ 1.5&lt;/td&gt;
&lt;td&gt;Good&lt;/td&gt;
&lt;td&gt;≥ 14 dB&lt;/td&gt;
&lt;td&gt;≤ 0.18 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.5 – 2.0&lt;/td&gt;
&lt;td&gt;Acceptable&lt;/td&gt;
&lt;td&gt;9.5 – 14 dB&lt;/td&gt;
&lt;td&gt;0.18 – 0.51 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2.0 – 3.0&lt;/td&gt;
&lt;td&gt;Investigate&lt;/td&gt;
&lt;td&gt;6 – 9.5 dB&lt;/td&gt;
&lt;td&gt;0.51 – 1.25 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;gt; 3.0&lt;/td&gt;
&lt;td&gt;Fail&lt;/td&gt;
&lt;td&gt;&amp;lt; 6 dB&lt;/td&gt;
&lt;td&gt;&amp;gt; 1.25 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Note the last column: even at a VSWR as poor as 3.0, the power actually wasted is only 1.25 dB. &lt;strong&gt;The mismatch loss itself is rarely what kills you.&lt;/strong&gt; What kills you is what a high VSWR reveals — the antenna is not resonant anywhere near the band you are using. That is where the missing fifteen decibels went.&lt;/p&gt;

&lt;p&gt;Antennas for low bands such as 470 MHz are physically large, and many products are electrically shortened to fit, which narrows bandwidth and reduces efficiency. This is why you select by regional band rather than buying a generic "LoRa antenna".&lt;/p&gt;

&lt;h3&gt;
  
  
  Polarization: twenty dB or more, silently
&lt;/h3&gt;

&lt;p&gt;LoRaWAN end devices and gateways normally use linear polarization, installed vertically by default. If a device antenna is laid sideways inside an enclosure, or a meter is mounted on its side in a pit, the polarization plane rotates.&lt;/p&gt;

&lt;p&gt;Polarization mismatch loss follows a cosine-squared relationship: roughly 3 dB at 45 degrees, about 10 dB at 70 degrees, and approaching full loss at 90 degrees — in practice a 20 dB-plus drop. It is notoriously hard to diagnose, because "the device loses packets ten metres directly below the gateway" appears to make no sense at all until you stand the device upright and it works.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. The link budget: account for every decibel
&lt;/h2&gt;

&lt;p&gt;Selection by feel is a gamble. This is arithmetic. The power balance for an uplink is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Received power = device Tx power + device antenna gain − path loss − obstruction loss − feeder loss − connector loss + gateway antenna gain&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Solving the inequality gives the maximum allowable path loss:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Allowable path loss = device Tx power + device antenna gain + gateway antenna gain − gateway sensitivity − feeder loss − connector loss − obstruction loss − design margin&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every term is measurable or documented. Fill them in one by one.&lt;/p&gt;

&lt;h3&gt;
  
  
  Free-space path loss
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;FSPL (dB) = 32.44 + 20·log₁₀(distance in km) + 20·log₁₀(frequency in MHz)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Free-space loss at three common LoRaWAN bands:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Distance&lt;/th&gt;
&lt;th&gt;470 MHz&lt;/th&gt;
&lt;th&gt;868 MHz&lt;/th&gt;
&lt;th&gt;915 MHz&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 km&lt;/td&gt;
&lt;td&gt;85.9 dB&lt;/td&gt;
&lt;td&gt;91.2 dB&lt;/td&gt;
&lt;td&gt;91.7 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 km&lt;/td&gt;
&lt;td&gt;91.9 dB&lt;/td&gt;
&lt;td&gt;97.2 dB&lt;/td&gt;
&lt;td&gt;97.7 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 km&lt;/td&gt;
&lt;td&gt;99.9 dB&lt;/td&gt;
&lt;td&gt;105.2 dB&lt;/td&gt;
&lt;td&gt;105.7 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 km&lt;/td&gt;
&lt;td&gt;105.9 dB&lt;/td&gt;
&lt;td&gt;111.2 dB&lt;/td&gt;
&lt;td&gt;111.7 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Note the frequency term: at the same distance, 470 MHz loses &lt;strong&gt;5.8 dB less&lt;/strong&gt; than 915 MHz. That is the natural advantage of the lower Sub-GHz band, and the reason CN470 deployments often show better coverage than US915 ones at equal power — not better hardware, just physics.&lt;/p&gt;

&lt;h3&gt;
  
  
  Real environments replace n
&lt;/h3&gt;

&lt;p&gt;Free space assumes a path loss exponent of n = 2. Practical values:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Environment&lt;/th&gt;
&lt;th&gt;Path loss exponent n&lt;/th&gt;
&lt;th&gt;Loss per doubling of distance&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free space / clean line of sight&lt;/td&gt;
&lt;td&gt;2.0&lt;/td&gt;
&lt;td&gt;6 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Suburban / open campus&lt;/td&gt;
&lt;td&gt;2.5 – 3.0&lt;/td&gt;
&lt;td&gt;7.5 – 9 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Built-up urban&lt;/td&gt;
&lt;td&gt;3.0 – 3.5&lt;/td&gt;
&lt;td&gt;9 – 10.5 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dense indoor&lt;/td&gt;
&lt;td&gt;3.5 – 4.5&lt;/td&gt;
&lt;td&gt;10.5 – 13.5 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Applied on top of the 1 km reference:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;PL (dB) = FSPL(1 km) + 10·n·log₁₀(distance in km) + obstruction loss&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  A worked example
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Scenario&lt;/strong&gt;: CN470, an open campus with mostly outdoor installations. A GD73 (&lt;code&gt;-2&lt;/code&gt; suffix, 22 dBm) with a 3 dBi omnidirectional antenna at the top of a ten-metre mast. Gateway side: 1.5 m of LMR-400 plus two connectors. End device: a KC11 DTU transmitting at 14 dBm with a 0 dBi stub, inside an outdoor meter box. Target SF12, BW 125 kHz, gateway sensitivity -141 dBm.&lt;/p&gt;

&lt;p&gt;Gateway-side losses line by line:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Note&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Feeder, LMR-400 @ 470 MHz, 1.5 m&lt;/td&gt;
&lt;td&gt;0.13 dB&lt;/td&gt;
&lt;td&gt;≈ 0.09 dB/m&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two connectors&lt;/td&gt;
&lt;td&gt;0.40 dB&lt;/td&gt;
&lt;td&gt;≈ 0.2 dB each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gateway-side total&lt;/td&gt;
&lt;td&gt;0.53 dB&lt;/td&gt;
&lt;td&gt;count as 0.6 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Maximum allowable path loss:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;14 dBm (device Tx) + 0 dBi (device antenna) + 3 dBi (gateway antenna) − (−141 dBm) (gateway sensitivity) − 0.6 dB (feeder and connectors) − 20 dB (box penetration and clutter) − 10 dB (design margin)&lt;br&gt;
= 127.4 dB&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Back-solving distance at n = 3.0:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;85.9 + 30·log₁₀(d) ≤ 127.4&lt;br&gt;
log₁₀(d) ≤ 1.383&lt;br&gt;
d ≤ 24 km&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Which is obviously larger than any real campus deployment. Section 5 explains why. The point here is this: &lt;strong&gt;the power budget is inherently generous, which means the real constraint on LoRaWAN coverage is almost never transmit power — it is antenna placement and environment.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Feeder cable: the easiest 3 dB to throw away
&lt;/h2&gt;

&lt;p&gt;In the example above the feeder accounted for only 0.6 dB, because it was LMR-400 and only 1.5 m long. Change one of those two things and the picture changes quickly.&lt;/p&gt;

&lt;p&gt;Typical coaxial cable attenuation in the Sub-GHz range:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cable type&lt;/th&gt;
&lt;th&gt;@ 470 MHz&lt;/th&gt;
&lt;th&gt;@ 900 MHz&lt;/th&gt;
&lt;th&gt;Total over 3 m @ 470 MHz&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;RG-58&lt;/td&gt;
&lt;td&gt;≈ 0.35 dB/m&lt;/td&gt;
&lt;td&gt;≈ 0.57 dB/m&lt;/td&gt;
&lt;td&gt;≈ 1.05 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RG-213&lt;/td&gt;
&lt;td&gt;≈ 0.20 dB/m&lt;/td&gt;
&lt;td&gt;≈ 0.32 dB/m&lt;/td&gt;
&lt;td&gt;≈ 0.60 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LMR-400&lt;/td&gt;
&lt;td&gt;≈ 0.09 dB/m&lt;/td&gt;
&lt;td&gt;≈ 0.13 dB/m&lt;/td&gt;
&lt;td&gt;≈ 0.27 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1/2" corrugated copper feeder&lt;/td&gt;
&lt;td&gt;≈ 0.02 dB/m&lt;/td&gt;
&lt;td&gt;≈ 0.03 dB/m&lt;/td&gt;
&lt;td&gt;≈ 0.06 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Add connectors at roughly 0.1–0.3 dB each in this range, counting an adapter (N-type to SMA, say) as two.&lt;/p&gt;

&lt;p&gt;All small numbers. Two observations follow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, feeder loss applies in both directions.&lt;/strong&gt; Ten metres of RG-58 costs 3.5 dB on receive and another 3.5 dB on transmit. That is why "keep the gateway in the rack and run a long feeder up to the roof" is a bad plan — you lose 3.5 dB at each end, roughly 55% of the power in each direction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, remember what 3 dB is.&lt;/strong&gt; It is half the power. A cheap ten-metre run can take a 22 dBm radio down to well under half its effective radiated output. &lt;strong&gt;The care you put into choosing antenna gain is easily wiped out by the cable you saved money on.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There is only one correct engineering answer: &lt;strong&gt;move the gateway closer to the antenna, not the feeder closer to the antenna.&lt;/strong&gt; A device like the GD62 (IP67), rated for -25 °C to 60 °C with IP67 protection, was designed to be mounted on a pole. Put the antenna on the chassis connector with a short jumper, and run Ethernet/PoE back to the rack — 100 m of Ethernet costs nothing in RF terms, 10 m of feeder costs decibels.&lt;/p&gt;

&lt;p&gt;Where a long feeder is genuinely required for lightning protection or routing, spend the money on the cable instead: 1/2" feeder loses about 0.02 dB/m at 470 MHz, so 20 m costs only 0.4 dB. It needs adapters and demands better workmanship, but it is money well spent.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Antenna height matters more than antenna gain
&lt;/h2&gt;

&lt;p&gt;Back to that absurd 24 km. Where did it come from?&lt;/p&gt;

&lt;p&gt;Height. LoRa in the Sub-GHz bands is substantially quasi-line-of-sight, and the real limiter is often the radio horizon. With standard atmospheric refraction (4/3 Earth radius):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Radio horizon (km) ≈ 4.12 × (√h₁(m) + √h₂(m))&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;where h₁ is gateway antenna height and h₂ is device antenna height. Taking the device at 1.5 m:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gateway antenna height&lt;/th&gt;
&lt;th&gt;Radio horizon&lt;/th&gt;
&lt;th&gt;vs 2 m&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2 m (top of a cabinet, within arm's reach)&lt;/td&gt;
&lt;td&gt;≈ 10.6 km&lt;/td&gt;
&lt;td&gt;baseline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 m (second floor, external wall)&lt;/td&gt;
&lt;td&gt;≈ 12.5 km&lt;/td&gt;
&lt;td&gt;+18%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 m (roof mast)&lt;/td&gt;
&lt;td&gt;≈ 14.6 km&lt;/td&gt;
&lt;td&gt;+38%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20 m (tower)&lt;/td&gt;
&lt;td&gt;≈ 17.9 km&lt;/td&gt;
&lt;td&gt;+69%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Compare that with changing antennas. Going from 3 dBi to 8 dBi buys 5 dB, which at n = 3 improves coverage radius by a factor of about &lt;strong&gt;1.47 (+47%)&lt;/strong&gt;. Raising the antenna from 2 m to 10 m extends the horizon by about &lt;strong&gt;38%&lt;/strong&gt;.Comparable numbers, but there is one essential difference:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Height costs you nothing. Gain costs you vertical coverage nearby.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And in urban environments you never reach the horizon anyway; obstruction dominates. That is where height wins outright: ten metres up usually means the antenna has cleared the building edge and moved away from every reflective surface on a metal roof. No amount of gain goes through a building.&lt;/p&gt;

&lt;p&gt;So the selection order should be:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Win the height first&lt;/strong&gt; — find the highest compliant mounting position.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Then pick the right gain&lt;/strong&gt;, not the highest gain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose cable and connectors last&lt;/strong&gt; — although this is where the cheapest decibels usually are.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  6. Verify uplink and downlink separately
&lt;/h2&gt;

&lt;p&gt;This is a very common trap. During commissioning the uplinks look rock solid and everyone signs off on coverage. A week later ADR is not taking effect, Join Accepts are missing, and downlink commands need three retries.&lt;/p&gt;

&lt;p&gt;The reason is that the two directions do not balance. Four points:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, gateway sensitivity is usually better than device sensitivity.&lt;/strong&gt; ManThink gateways are specified at -141 dBm (SF12, BW 125 kHz). Common device radios such as the SX1262 sit around -137 dBm — roughly 4 dB worse.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, gateway transmit power is usually higher.&lt;/strong&gt; GD73 delivers up to 27 dBm (&lt;code&gt;-1&lt;/code&gt;) or 22 dBm (&lt;code&gt;-2&lt;/code&gt;); a typical LoRaWAN device transmits at 14 dBm. Another 8–13 dB in the gateway's favour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Third, many regions impose a separate limit on gateway downlink EIRP.&lt;/strong&gt; Under the ERC 70-03 framework commonly applied to EU868, most sub-bands cap EIRP at 25 mW (14 dBm), with 500 mW permitted in 869.4–869.65 MHz subject to duty-cycle conditions. That pulls gateway downlink EIRP down to roughly the device's level, leaving the 4 dB sensitivity advantage as the only compensation — so &lt;strong&gt;the downlink breaks first, inevitably.&lt;/strong&gt; Always confirm current limits against the local spectrum authority's regulations and the equipment's type approval.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fourth, feeder loss is bidirectional.&lt;/strong&gt; Those 3 dB on the gateway side hurt both links, and in most self-built deployments only the gateway has a feeder at all.&lt;/p&gt;

&lt;p&gt;Conclusion: &lt;strong&gt;always run two budgets.&lt;/strong&gt; The uplink budget decides whether you receive data. The downlink budget decides whether joins, ADR and downlink commands work at all. Many two-way applications — valve control, remote verification, configuration pushes, FUOTA — fail on the downlink, not the uplink.&lt;/p&gt;

&lt;p&gt;The simplest field test: once installed, perform a join with a real device at the furthest point. A join is inherently bidirectional — the device sends a Join Request and must receive the Join Accept for the join to succeed. A missing 3 dB in either direction shows up there first.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Selecting by scenario: five typical combinations
&lt;/h2&gt;

&lt;p&gt;Applying the above to concrete hardware, using documented specifications:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gateway&lt;/th&gt;
&lt;th&gt;Form factor and key specs&lt;/th&gt;
&lt;th&gt;Antenna and installation approach&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GD61x / GD62 (IP67)&lt;/td&gt;
&lt;td&gt;ESP32-S3 + SX1301/SX1302; GD62 is IP67, -25 to 60 °C, 164 × 124 × 50 mm, wall or pole mount, gwTool6 configuration, web OTA with A/B dual firmware partitions&lt;/td&gt;
&lt;td&gt;Compact and pole-mountable; connect the antenna with a short jumper. Suited to dense, low-cost single-point coverage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GDI51&lt;/td&gt;
&lt;td&gt;Ubuntu gateway with ThinkLink built in (LS1012A); 8 frequency points / 16 demodulators / 65 logical channels; sensitivity -141 dBm; PoE or Type-C&lt;/td&gt;
&lt;td&gt;Indoor coverage for smart buildings. Prefer a 2–3 dBi antenna designed for floor-to-floor coverage rather than high gain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GD73&lt;/td&gt;
&lt;td&gt;SX1302; type A 8 frequency points / type D 16; &lt;code&gt;-1&lt;/code&gt; up to 27 dBm, &lt;code&gt;-2&lt;/code&gt; up to 22 dBm; sensitivity -141 dBm&lt;/td&gt;
&lt;td&gt;Projects requiring at least 25 dBm must specify the &lt;code&gt;-1&lt;/code&gt; version. Suited to campus-scale distance, with a proper mast and low-loss feeder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GDO51&lt;/td&gt;
&lt;td&gt;Outdoor IP67; up to 16 frequency points / 32 demodulators / 130 logical channels; sensitivity -141 dBm; PoE / 4G / Wi-Fi / Ethernet / GPS; external SIM slot and debug port; published reference price USD 345 (about ¥2,315, subject to current quotation)&lt;/td&gt;
&lt;td&gt;Outdoor and demanding sites. Full outdoor waterproofing is mandatory; connect LTE, GPS and Wi-Fi antennas to their matching labelled ports&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One variable is still routinely forgotten: &lt;strong&gt;the gateway and the end devices must be in the same regional band.&lt;/strong&gt; Worth restating because export projects get this wrong more than anything else — CN470 is 470–510 MHz and EU433 is 433–434 MHz. One character differs on the purchase order; the antennas are entirely different.&lt;/p&gt;

&lt;p&gt;And a note on product positioning. The GD6 series is an entry-level, edge-side form factor suited to single-point coverage and functional validation. Building-scale and industrial deployments generally need devices with more channels, more demodulators and higher reliability designs — GDI51, GD73 or GDO51. Do not expect an edge-class device to carry a building-scale network's capacity just because you changed the antenna.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Ten installation steps, straight from the manuals
&lt;/h2&gt;

&lt;p&gt;Merging the installation requirements from the GD61x, GD62 (IP67) and GD72 manuals gives ten steps. The first three are done with the power disconnected:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Step 1.&lt;/strong&gt; Confirm &lt;strong&gt;the device is powered off&lt;/strong&gt; and that the LoRa antenna matches the gateway band.&lt;br&gt;
&lt;strong&gt;Step 2.&lt;/strong&gt; Connect the LoRa antenna to the &lt;code&gt;LoRa&lt;/code&gt; / &lt;code&gt;RF&lt;/code&gt; port and &lt;strong&gt;tighten it&lt;/strong&gt;, letting the connector seat naturally — do not force-twist the connector body.&lt;br&gt;
&lt;strong&gt;Step 3.&lt;/strong&gt; If external Wi-Fi or 4G antennas are supplied, fit them to the matching labelled ports — LTE, GPS/BDS and Wi-Fi each have their own.&lt;br&gt;
&lt;strong&gt;Step 4.&lt;/strong&gt; For cellular backhaul, insert the SIM card, then fit the waterproof cover.&lt;br&gt;
&lt;strong&gt;Step 5.&lt;/strong&gt; For wall mounting, mark out to the bracket hole pattern and use fixings appropriate to the wall material. For pole mounting, check the pole diameter first — the GD72 manual gives a range of &lt;strong&gt;30–52 mm&lt;/strong&gt; — fit the clamp and tighten evenly.&lt;br&gt;
&lt;strong&gt;Step 6.&lt;/strong&gt; Keep the correct orientation per the supplied installation drawing; the GD72 manual explicitly requires "keep the gateway facing upwards".&lt;br&gt;
&lt;strong&gt;Step 7.&lt;/strong&gt; Leave room for the antenna, connectors and cable bending radius. Never let the cable's weight pull directly on a connector.&lt;br&gt;
&lt;strong&gt;Step 8.&lt;/strong&gt; Route the Ethernet cable through the supplied waterproof gland in assembly order (the seal must match the cable outside diameter), seat the RJ45, then tighten.&lt;br&gt;
&lt;strong&gt;Step 9.&lt;/strong&gt; Complete the waterproofing check, then apply power.&lt;br&gt;
&lt;strong&gt;Step 10.&lt;/strong&gt; Watch the status: the GD61x normal operating indication is an LED &lt;strong&gt;slow flash, 1 s on / 1 s off&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Four points on waterproofing
&lt;/h3&gt;

&lt;p&gt;The GD72 manual provides a checkable list. Verify against it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every outdoor antenna connector&lt;/strong&gt; is sealed according to site practice — insulating tape, self-amalgamating tape or dedicated waterproofing material suitable for outdoor use, applied so that it fully covers the joint and forms a &lt;strong&gt;continuous seal&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Priority areas&lt;/strong&gt;: cable entries, antenna ports, SIM card cover, power and network ports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Drip loop&lt;/strong&gt;: always leave one, so rain cannot track along the cable into a connector.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unused ports&lt;/strong&gt; stay sealed with their original plugs, fitted and tightened.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two more points on outdoor power: PoE adapters and any supply not rated for outdoor use must sit in a dry location or a suitable enclosure, and the GD72 manual adds that the adapter should be mounted vertically with its ports facing down.&lt;/p&gt;

&lt;p&gt;And one point that is easy to forget because it lives on a different timescale:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Inspect sealing material periodically and replace it promptly if aged, cracked or loose.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Where to mount it — and where not to
&lt;/h3&gt;

&lt;p&gt;Drawing on the GD62 (IP67) "Before Use" section and the propagation analysis above:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Avoid&lt;/strong&gt;: standing water, heat sources, inside metal roofs or cable trays, electrical risers containing high-power equipment, anywhere permanently shadowed by heavy machinery.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prefer&lt;/strong&gt;: high points, open aspects, and positions a maintenance technician can reach safely.&lt;/p&gt;

&lt;p&gt;Mind the stated environmental limit too: the actual ambient temperature at the mounting position must stay within &lt;strong&gt;-25 °C to 60 °C&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Six things you must not do
&lt;/h2&gt;

&lt;p&gt;These are the prohibitions written into the documentation. Ignore them and no warranty applies:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Prohibition&lt;/th&gt;
&lt;th&gt;Official wording&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Transmitting with no antenna&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;"Connect the LoRa antenna before powering on. Do not start LoRa transmission with no antenna connected."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mismatched band and accessories&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;"The RF region must be consistent with the hardware, antenna and end-device configuration." / "Confirm the antenna frequency band matches the gateway's regional version."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Choosing a supply by port name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;"Before connecting PoE, check the supply standard, voltage and wiring requirements. Do not select a power source based on the port name alone."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Multiple supplies at once&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;"Do not connect multiple power sources simultaneously unless expressly permitted in the delivery documentation."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Overvoltage on Type-C / wrong terminals&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;"Do not apply more than 5 V to the Type-C port. Do not connect a supply to the A+ / B- terminals."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Opening the enclosure or modifying seals&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;"Do not open the enclosure or modify the sealing structure without authorisation."&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two protection limits from the GD72 manual:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;IP67 does not mean submersible&lt;/strong&gt;: the IP67 rating applies with the enclosure intact and seals and connectors correctly assembled. The unit is not intended for prolonged immersion, and interfaces must not be washed with a high-pressure jet.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;These six prohibitions and two limits are the complete set of installation-related restrictions stated in the manuals.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And one operational sequence, from the GD61x manual:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Do not disconnect power during a firmware upgrade, configuration write or factory reset.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  10. Commissioning: how to read RSSI and SNR
&lt;/h2&gt;

&lt;p&gt;Finishing the installation is not the end of acceptance testing; it is the start. Two values need recording: RSSI (received signal strength) and SNR (signal-to-noise ratio). They mean quite different things, and reading them together without understanding both leads to wrong conclusions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SNR decides whether demodulation is possible at all.&lt;/strong&gt; LoRa is a spread-spectrum modulation, and demodulation depends on the signal exceeding the demodulation threshold for that spreading factor. Typical values from Semtech transceiver datasheets:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Spreading factor&lt;/th&gt;
&lt;th&gt;Typical SNR demodulation threshold&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SF7&lt;/td&gt;
&lt;td&gt;≈ −7.5 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SF8&lt;/td&gt;
&lt;td&gt;≈ −10 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SF9&lt;/td&gt;
&lt;td&gt;≈ −12.5 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SF10&lt;/td&gt;
&lt;td&gt;≈ −15 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SF11&lt;/td&gt;
&lt;td&gt;≈ −17.5 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SF12&lt;/td&gt;
&lt;td&gt;≈ −20 dB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The key point: &lt;strong&gt;a negative SNR is normal.&lt;/strong&gt; Demodulating below the noise floor is the whole point of spread spectrum. An SNR of -12 dB is perfectly healthy at SF10.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RSSI tells you how much margin is left.&lt;/strong&gt; Its absolute value means little on its own — a gateway with -141 dBm sensitivity receiving -115 dBm still has 26 dB of margin, while the same signal at a device with -137 dBm sensitivity leaves only 22 dB. Always read RSSI against the receiver's sensitivity.&lt;/p&gt;

&lt;p&gt;Practical acceptance bands:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;SNR and RSSI&lt;/th&gt;
&lt;th&gt;Reading&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SNR ≥ −5 dB, RSSI ≥ −100 dBm&lt;/td&gt;
&lt;td&gt;Plenty of margin&lt;/td&gt;
&lt;td&gt;Let ADR reduce the data rate and save device power and channel occupancy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SNR −10 to −5 dB, RSSI −110 to −100 dBm&lt;/td&gt;
&lt;td&gt;Healthy&lt;/td&gt;
&lt;td&gt;Normal operation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SNR close to the SF threshold (margin &amp;lt; 5 dB)&lt;/td&gt;
&lt;td&gt;Marginal&lt;/td&gt;
&lt;td&gt;Record and re-measure; weather and clutter changes will drop it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SNR below threshold, or RSSI &amp;lt; −125 dBm&lt;/td&gt;
&lt;td&gt;Unusable&lt;/td&gt;
&lt;td&gt;Check antenna, placement and feeder. Do not paper over it by raising the SF further&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Record three things per point&lt;/strong&gt;: RSSI, SNR, and the SF in use at the time. The same RSSI means completely different margins at SF7 and SF12, and future capacity planning is impossible without the third number.&lt;/p&gt;

&lt;p&gt;Also plan for at least two measurement rounds: a baseline at installation, and a re-measurement one to two months later. Antennas and connectors degrade gradually, and a poorly sealed connector commonly shows a 5–10 dB RSSI drop within two months.&lt;/p&gt;




&lt;h2&gt;
  
  
  11. One page for the field team
&lt;/h2&gt;

&lt;p&gt;A checklist to hand out at project kick-off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Selection&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirm the RF region for the gateway suffix; the antenna's frequency range must cover the corresponding band (CN470: 470–510 MHz).&lt;/li&gt;
&lt;li&gt;Normalise dBi and dBd before comparing gain. Prefer 2–3 dBi for indoor and dense short-range deployments; consider 5–8 dBi for open line-of-sight.&lt;/li&gt;
&lt;li&gt;Confirm VSWR ≤ 2.0 across the operating band (prefer ≤ 1.5). Ask suppliers for a measured sweep across the band, not a single-spot figure.&lt;/li&gt;
&lt;li&gt;Decide between the &lt;code&gt;-1&lt;/code&gt; (27 dBm) and &lt;code&gt;-2&lt;/code&gt; (22 dBm) versions, and check local EIRP limits for the band.&lt;/li&gt;
&lt;li&gt;Look feeder losses up against the actual band. Beyond three metres, use LMR-400 or better, and keep the connector count down.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Work de-energised. Antenna on before power.&lt;/li&gt;
&lt;li&gt;Match LTE / GPS / Wi-Fi antennas to their labelled ports; never swap them.&lt;/li&gt;
&lt;li&gt;Win the height: clear the building-obstruction zone at minimum, ten metres or more where possible.&lt;/li&gt;
&lt;li&gt;Waterproof completely: self-amalgamating tape, continuous seal, drip loop, original plugs on unused ports.&lt;/li&gt;
&lt;li&gt;Keep the PoE adapter dry, mounted vertically with ports facing down, and not sharing duty with another supply.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Acceptance&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Perform a real join at the furthest point to confirm the downlink works.&lt;/li&gt;
&lt;li&gt;Record RSSI / SNR / SF for every point as the baseline.&lt;/li&gt;
&lt;li&gt;Re-measure after one to two months and compare.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;LoRaWAN link budgets usually look like this: twenty or thirty dB of theoretical headroom, and an actual outage caused by an unloved antenna sitting on top of a rack.&lt;/p&gt;

&lt;p&gt;The real cause is rarely that the power budget does not add up. It is almost always one of three small things: the antenna is not resonant in the band you are using, the feeder silently ate 3 dB, or the antenna was never taken somewhere it can see the target.&lt;/p&gt;

&lt;p&gt;None of the three is expensive, and none appears on the gateway's price list. They show up in the budget under a different heading: the second visit. And the third.&lt;/p&gt;

&lt;p&gt;Which is why selection and installation belong in the design phase, not at the tail end of construction.&lt;/p&gt;




&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.manthink.cn/en/resources/thinklink-thing-model-decoder-script/" rel="noopener noreferrer"&gt;ThinkLink Thing Model Decoder Scripts in Practice: Turning 15 Bytes into a Readable Table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.manthink.cn/en/resources/thinklink-trigger-rules-alerting/" rel="noopener noreferrer"&gt;ThinkLink Trigger Rules and Alerting in Practice: On Time, Without Noise, To the Right Person&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.manthink.cn/en/resources/thinklink-edge-on-premises-deployment/" rel="noopener noreferrer"&gt;ThinkLink Edge (TKE) On-Premises Deployment in Practice: Keeping Data on Site&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.manthink.cn/en/resources/thinklink-bacnet-ip-modbus-tcp-integration/" rel="noopener noreferrer"&gt;Connecting ThinkLink to BACnet/IP and Modbus TCP: From Field Mapping to YABE Verification&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Official manuals
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.think-link.net/docs/en/Device/LoRaWANGateway/gd61x-user-guide.html" rel="noopener noreferrer"&gt;GD61x Indoor LoRaWAN Gateway Specification and User Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.think-link.net/docs/en/Device/LoRaWANGateway/gd6-ip67.html" rel="noopener noreferrer"&gt;GD62 IP67 Outdoor LoRaWAN Gateway User Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.think-link.net/docs/en/Device/LoRaWANGateway/gd72.html" rel="noopener noreferrer"&gt;GD72 Outdoor LoRaWAN Gateway User Manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.think-link.net/docs/en/Device/LoRaWANGateway/gd73.html" rel="noopener noreferrer"&gt;GD73 Indoor LoRaWAN Gateway Manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.think-link.net/docs/en/Device/LoRaWANGateway/gdi51.html" rel="noopener noreferrer"&gt;GDI51 Indoor Gateway Product Manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.think-link.net/docs/en/Device/LoRaWANGateway/gdo51.html" rel="noopener noreferrer"&gt;GDO51 Outdoor Gateway User Manual&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>hardware</category>
      <category>howto</category>
      <category>iot</category>
      <category>networking</category>
    </item>
    <item>
      <title>Connecting ThinkLink to Home Assistant and Node-RED: One MQTT Forwarder Does the Whole Job</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Tue, 27 Oct 2026 09:47:49 +0000</pubDate>
      <link>https://dev.to/manthink/connecting-thinklink-to-home-assistant-and-node-red-one-mqtt-forwarder-does-the-whole-job-4bd6</link>
      <guid>https://dev.to/manthink/connecting-thinklink-to-home-assistant-and-node-red-one-mqtt-forwarder-does-the-whole-job-4bd6</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0a57yflwwykn6v2lzocg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0a57yflwwykn6v2lzocg.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A LoRaWAN project reaches a familiar point: the data is already flowing into ThinkLink, but the interface the customer actually wants to look at is somewhere else — a Home Assistant dashboard, or a flow they have wired up in Node-RED.&lt;/p&gt;

&lt;p&gt;That is a reasonable request. Home Assistant dashboards and automation rules are genuinely good, and Node-RED is genuinely handy for stitching systems together. But one fact has to be settled first: &lt;strong&gt;neither platform speaks LoRaWAN.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Home Assistant supports MQTT, Zigbee, Z-Wave and HTTP. LoRaWAN is not on that list. It cannot talk to a gateway and it does not parse LoRaWAN frames. Node-RED is in the same position — it is a flow engine, and what it consumes depends entirely on what input node you give it.&lt;/p&gt;

&lt;p&gt;So something has to sit in the middle and turn radio frames into structured data. That is what ThinkLink does: the gateway receives the frame, the network server decrypts it, the thing model decoder turns bytes into named fields, and only then does the data become "temperature 24.6" — something an application can actually use.&lt;/p&gt;

&lt;p&gt;Which leaves exactly one question: &lt;strong&gt;how do you hand that parsed data to Home Assistant or Node-RED?&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Start with a version change: the built-in HA integration is gone
&lt;/h2&gt;

&lt;p&gt;This belongs at the top, because it determines the whole approach.&lt;/p&gt;

&lt;p&gt;Older manuals describe configuring Home Assistant fields in the thing model, or entering an HA address under server configuration. The official 2.00.066 notes are explicit: &lt;strong&gt;that release removed the built-in ThingsBoard / Home Assistant integrations and their related fields&lt;/strong&gt;, and the older HA / ThingsBoard instructions "apply only to older versions and must not be used as operating steps for 2.00.066." The same passage adds that &lt;strong&gt;BACnet / Modbus are retained.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;From 2.00.066 onwards, there is no "type in an HA address and let the platform push entities" path. What replaced it is a general capability: &lt;strong&gt;the MQTT forwarder (Broker + Forwarder)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This is not a regression. A built-in integration hard-codes a single integration shape: the platform pushes in its own format and the other side has to adapt. With a forwarder, topic rewriting, payload restructuring and filtering all live in one JavaScript function, and the mechanism is identical no matter what you are connecting to. Home Assistant, Node-RED, ThingsBoard, a custom service: from ThinkLink's side the only difference is the contents of that script.&lt;/p&gt;

&lt;p&gt;One more distinction worth making. Product comparison material mentions that ThinkLink edge deployments (TKG, gateway-embedded) come with Home Assistant OS and ThingsBoard CE as preloaded components. That is &lt;strong&gt;a separate HA instance running on the same hardware&lt;/strong&gt; — it is not "ThinkLink pushing data into Home Assistant." This article is about the latter: getting data out of ThinkLink and into an HA or Node-RED instance you already run.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Three possible paths — pick the right one before you start
&lt;/h2&gt;

&lt;p&gt;There is a choice to make first. The documentation describes three push mechanisms, and they are not equally current.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;th&gt;Mechanism&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Use it?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Device-side "third-party forward" switch + server-side ThirdParty config&lt;/td&gt;
&lt;td&gt;legacy direct push&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;legacy config, deactivated&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server configuration → ThirdParty MQTT&lt;/td&gt;
&lt;td&gt;one Broker address configured platform-side&lt;/td&gt;
&lt;td&gt;documentation conflict, see below&lt;/td&gt;
&lt;td&gt;confirm against your version&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Advanced → Broker + Forwarder&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;subscribe to an internal topic, forward to a target broker&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;the current supported method&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One documentation conflict has to be reported honestly. The &lt;strong&gt;MQTT forwarder page&lt;/strong&gt; states plainly: there is no need to enable any "third-party forward" switch on the device, and no need to configure any third-party platform under server configuration — "both of those settings from older versions are deactivated." Meanwhile the &lt;strong&gt;server configuration page&lt;/strong&gt; still documents a ThirdParty section (Protocol / Host / Port / Telemetry Topic / Username / Password) plus an instruction to enable a ThirdParty switch on the device detail page.&lt;/p&gt;

&lt;p&gt;The two pages are describing different things, or at least different versions. The practical resolution is simple: &lt;strong&gt;go by what your platform version actually exposes.&lt;/strong&gt; If the interface has "Advanced → Broker / Forwarder", use the forwarder. That is the main path on current versions and it is what the rest of this article covers.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. The forwarder: two steps, five fields
&lt;/h2&gt;

&lt;p&gt;The data flow looks like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;ThinkLink internal broker (AS or ThinkLink)&lt;br&gt;
        ↓  Source Broker / Subscription Topic&lt;br&gt;
Forwarder rule (optional JavaScript transform)&lt;br&gt;
        ↓  Target Broker&lt;br&gt;
Third-party MQTT broker (Customize)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 1: create two broker connections
&lt;/h3&gt;

&lt;p&gt;Go to &lt;strong&gt;Advanced → Broker&lt;/strong&gt;. One forwarder rule needs one source connection and one target connection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source broker&lt;/strong&gt; — two internal types, and the choice determines what shape of data you get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ThinkLink&lt;/code&gt;: &lt;strong&gt;telemetry after thing-model decoding&lt;/strong&gt;. Fields already have names and units.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AS&lt;/code&gt;: &lt;strong&gt;raw uplink after LoRaWAN decryption&lt;/strong&gt;, before the thing model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pick &lt;code&gt;ThinkLink&lt;/code&gt; for almost everything. There is only one good reason to choose &lt;code&gt;AS&lt;/code&gt;: you want to do your own parsing downstream, or you need RF-side values like RSSI and SNR for network quality analysis. If the goal is "show a temperature in Home Assistant," choosing &lt;code&gt;AS&lt;/code&gt; means redoing work the platform has already done.&lt;/p&gt;

&lt;p&gt;Addresses and tenant credentials for the internal brokers are filled in by the platform; you do not need to fetch them from server configuration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Target broker&lt;/strong&gt; — add a &lt;code&gt;Customize&lt;/code&gt; entry with the other side's details:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Name and enabled state&lt;br&gt;
MQTT URL, e.g. mqtt://192.168.1.50:1883 or mqtts://host:8883&lt;br&gt;
Username and password (when required)&lt;br&gt;
CA certificate, client certificate and other TLS material (when required)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If Home Assistant and Node-RED run on the same host — the common case — the target is the Mosquitto instance on that host, or the Mosquitto broker add-on inside HA.&lt;/p&gt;

&lt;p&gt;After saving and enabling, check the broker list state first: &lt;code&gt;RUNNING&lt;/code&gt; is healthy; &lt;code&gt;ERROR&lt;/code&gt; means read &lt;code&gt;ErrMsg&lt;/code&gt; and work through URL, port, credentials, certificates, and network reachability.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: create the forwarder rule
&lt;/h3&gt;

&lt;p&gt;Go to &lt;strong&gt;Advanced → Forwarder → Add&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Name&lt;/td&gt;
&lt;td&gt;Rule name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enabled&lt;/td&gt;
&lt;td&gt;The rule only subscribes and forwards when this is on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Source Broker&lt;/td&gt;
&lt;td&gt;Broker to subscribe to&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Target Broker&lt;/td&gt;
&lt;td&gt;Broker to publish to&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Subscription Topic&lt;/td&gt;
&lt;td&gt;Topic on the source broker; supports MQTT &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;#&lt;/code&gt; wildcards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Custom Script&lt;/td&gt;
&lt;td&gt;Optional; rewrites topic, message body or retain flag&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remark / commit note&lt;/td&gt;
&lt;td&gt;Optional; documents the rule and version changes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One hard constraint: &lt;strong&gt;Source Broker and Target Broker may not both be internal types (&lt;code&gt;AS&lt;/code&gt; / &lt;code&gt;ThinkLink&lt;/code&gt;)&lt;/strong&gt;, to avoid a pointless internal loop. The normal third-party combination is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Source Broker = AS or ThinkLink&lt;br&gt;
Target Broker = Customize&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  How to fill in Subscription Topic
&lt;/h3&gt;

&lt;p&gt;This is the field most often got wrong, because there is no default and the placeholder must be replaced.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source Broker&lt;/th&gt;
&lt;th&gt;Data&lt;/th&gt;
&lt;th&gt;Subscription Topic&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ThinkLink&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;telemetry after thing-model decoding&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v32/{tenant}/tkl/up/telemetry/#&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;raw uplink after LoRaWAN decryption&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v32/{tenant}/as/up/data/#&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;complete uplink after multi-gateway collection&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v32/{tenant}/as/up/dataAll/#&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;{tenant}&lt;/code&gt; must be replaced with your actual organisation account, visible in your profile — &lt;strong&gt;do not leave the placeholder in place&lt;/strong&gt;. &lt;code&gt;#&lt;/code&gt; covers every device in the organisation; to forward a single device, replace &lt;code&gt;#&lt;/code&gt; with that device's DevEUI.&lt;/p&gt;

&lt;p&gt;Concretely: organisation account &lt;code&gt;mtfac&lt;/code&gt;, forwarding decoded telemetry for all devices, gives &lt;code&gt;/v32/mtfac/tkl/up/telemetry/#&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. The transform script: translating ThinkLink into HA's vocabulary
&lt;/h2&gt;

&lt;p&gt;With no script configured, the forwarder passes topic and payload straight through. That is a good starting point: &lt;strong&gt;let messages flow unchanged, capture one real message in Home Assistant or Node-RED, look at the actual field structure, and only then decide whether you need a script.&lt;/strong&gt; Scripts written from imagination rarely work the first time.&lt;/p&gt;

&lt;p&gt;When you do need to reshape the payload, there is exactly one entry function:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;function forwardScript({ topic, msg, org_params }) {&lt;br&gt;
  if (!msg?.telemetry_data) return null&lt;/p&gt;

&lt;p&gt;return {&lt;br&gt;
    topic: &lt;code&gt;${org_params.target_topic_prefix}/${msg.device_id}&lt;/code&gt;,&lt;br&gt;
    option: {&lt;br&gt;
      retain: false&lt;br&gt;
    },&lt;br&gt;
    msg: {&lt;br&gt;
      temperature: msg.telemetry_data.T,&lt;br&gt;
      humidity: msg.telemetry_data.H&lt;br&gt;
    }&lt;br&gt;
  }&lt;br&gt;
}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Three inputs: &lt;code&gt;topic&lt;/code&gt; is the original topic the message arrived on, &lt;code&gt;msg&lt;/code&gt; is the parsed message body, and &lt;code&gt;org_params&lt;/code&gt; is read-only organisation parameters.&lt;/p&gt;

&lt;p&gt;The returned object supports three fields: &lt;code&gt;topic&lt;/code&gt; (the topic to publish on the target broker), &lt;code&gt;msg&lt;/code&gt; (the body to publish), and &lt;code&gt;option&lt;/code&gt; (MQTT publish options such as &lt;code&gt;{ retain: true }&lt;/code&gt;). &lt;strong&gt;Returning &lt;code&gt;null&lt;/code&gt;, or returning nothing, discards the message&lt;/strong&gt; — which is the intended way to filter, for example forwarding only certain devices or only when a value crosses a threshold.&lt;/p&gt;

&lt;p&gt;The official example uses &lt;code&gt;msg.device_id&lt;/code&gt; and &lt;code&gt;msg.telemetry_data&lt;/code&gt;; the keys under &lt;code&gt;telemetry_data&lt;/code&gt; (shown as &lt;code&gt;T&lt;/code&gt; and &lt;code&gt;H&lt;/code&gt;) are whatever your thing model defines. &lt;strong&gt;Do not guess field names — capture a real message and confirm.&lt;/strong&gt; Article 21 covered thing model decoders: the keys defined there are the keys available here.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;org_params&lt;/code&gt; deserves a note of its own. It is an &lt;strong&gt;organisation-level set of environment variables&lt;/strong&gt;, maintained as key/value pairs under &lt;strong&gt;System Management → Server Configuration → Org Params&lt;/strong&gt;, shared across the whole tenant and injected automatically when the platform runs a script. The point is to move addresses, prefixes and business identifiers out of scripts — change environments or topic prefixes in one place instead of editing every script. Values take effect &lt;strong&gt;immediately, with no service restart&lt;/strong&gt;, and only organisation administrators can see them.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Home Assistant: two ways in
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: the Home Assistant configuration below is &lt;strong&gt;general Home Assistant knowledge&lt;/strong&gt;, not ThinkLink official documentation. HA moves quickly — check field names against the version you run.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Once data reaches the broker HA uses, HA has to turn it into entities. Two routes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First: hand-written MQTT sensors.&lt;/strong&gt; Declare sensors in &lt;code&gt;configuration.yaml&lt;/code&gt;, point &lt;code&gt;state_topic&lt;/code&gt; at whatever topic the forwarder publishes to, and pull the value out of the JSON with &lt;code&gt;value_template&lt;/code&gt;. This is the most robust option and you control every field; the cost is a block of config per measurement per device. Well suited to a small, fixed set of devices.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second: emit MQTT discovery messages yourself.&lt;/strong&gt; Home Assistant's MQTT integration supports discovery: publish a message carrying device metadata to the agreed discovery topic (prefix &lt;code&gt;homeassistant/&lt;/code&gt; by default) and HA creates the entity automatically. ThinkLink does not emit that format natively, but you can &lt;strong&gt;build it inside the forwarder script&lt;/strong&gt; — both &lt;code&gt;topic&lt;/code&gt; and &lt;code&gt;msg&lt;/code&gt; in the return value are yours to define, so the first uplink can trigger a discovery message.&lt;/p&gt;

&lt;p&gt;That route wins when devices are numerous or change often: adding one requires no HA config edits. The cost is script complexity and one round of debugging.&lt;/p&gt;

&lt;p&gt;One structural point worth planning for: ThinkLink sends &lt;strong&gt;one message per device containing multiple fields&lt;/strong&gt;, while an HA entity holds &lt;strong&gt;one value&lt;/strong&gt;. Either split it on the HA side with &lt;code&gt;value_template&lt;/code&gt;, or split it in the forwarder script and publish one topic per field. Deciding which layer does the splitting up front saves a lot of rework.&lt;/p&gt;

&lt;p&gt;And a practical warning: an entity showing "unknown" or "unavailable" in the HA dashboard is often not an HA problem — the data never reached the broker. Subscribe from the command line and confirm the message actually arrives before touching HA configuration.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Node-RED: three nodes and you are running
&lt;/h2&gt;

&lt;p&gt;Node-RED is more straightforward than HA, because it imposes no entity model — it processes whatever arrives.&lt;/p&gt;

&lt;p&gt;The minimal flow is three nodes: &lt;strong&gt;mqtt in&lt;/strong&gt; (subscribe to the topic on the target broker) → &lt;strong&gt;json&lt;/strong&gt; (parse the string into an object) → &lt;strong&gt;debug or a dashboard node&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The topic in &lt;code&gt;mqtt in&lt;/code&gt; is whatever the forwarder published, i.e. the &lt;code&gt;topic&lt;/code&gt; returned by &lt;code&gt;forwardScript&lt;/code&gt;. If you left it pass-through with no script, that is the original &lt;code&gt;/v32/mtfac/tkl/up/telemetry/{eui}&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Where Node-RED beats HA is the middle of the flow: you can drop in &lt;code&gt;function&lt;/code&gt; nodes for arbitrary logic — unit conversion, thresholds, cross-device correlation, database writes, third-party API calls. For something like "when temperature and humidity exceed limits, check another sensor in the same zone and only alert if both are over," Node-RED reads more clearly than a platform-side trigger script and is more flexible than an HA automation.&lt;/p&gt;

&lt;p&gt;Reverse control is equally a single &lt;code&gt;mqtt out&lt;/code&gt; node — but read the next section first.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Writes: from HA / Node-RED back to the device
&lt;/h2&gt;

&lt;p&gt;This is where misjudgement creeps in, and it is the same lesson as the BACnet write path in article 24.&lt;/p&gt;

&lt;p&gt;From pressing a button in HA to the device actually acting, at least three things must happen:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The command is accepted by the platform&lt;/strong&gt; — immediate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The RPC reaches the device&lt;/strong&gt; — on a &lt;strong&gt;Class A&lt;/strong&gt; LoRaWAN device the downlink can only go out in the receive window after an uplink (RX1 ~1 s, RX2 ~2 s). With a ten-minute reporting interval, that command can sit for ten minutes before it lands.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The device reports back&lt;/strong&gt; — the result of the execution only shows up on the next uplink.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So clicking a button in HA and seeing nothing change does not mean the command failed. Acceptance criteria should read "&lt;strong&gt;read back and confirm within N reporting cycles after sending&lt;/strong&gt;," not "click and look immediately."&lt;/p&gt;

&lt;p&gt;One recommendation for integrators: if the project needs control latency measured in seconds, a Class A device is the wrong choice and Class C should be considered. That decision belongs at device selection time — it cannot be fixed during integration.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Online status: one switch you have to turn on yourself
&lt;/h2&gt;

&lt;p&gt;Both HA and Node-RED need to know whether a sensor is still alive.&lt;/p&gt;

&lt;p&gt;From 2.00.084, a forwarder with a ThinkLink source can subscribe to the device status topic:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;/v32/{tenant}/tkl/device/status/{eui}&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;or, within an authorised organisation, &lt;code&gt;/v32/{tenant}/tkl/device/status/+&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two traps to know in advance:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, status messages require &lt;code&gt;notify_offline="TRUE"&lt;/code&gt; on the device, and that switch defaults to off.&lt;/strong&gt; Leave it off and there are no status messages at all — no amount of forwarder configuration will produce them. Note that the forwarder itself needs no device-side "third-party forward" switch; whether status messages exist depends solely on &lt;code&gt;notify_offline&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, this message has no &lt;code&gt;telemetry_data&lt;/code&gt;.&lt;/strong&gt; The example script above opens with &lt;code&gt;if (!msg?.telemetry_data) return null&lt;/code&gt;, which discards status messages outright. To forward status, either leave the message pass-through or handle the status format explicitly in the script.&lt;/p&gt;

&lt;p&gt;Also worth pinning down: "online" has three definitions on the platform and they are not interchangeable (article 22 covered this) — the activity time in the device list, &lt;code&gt;server_attrs.online&lt;/code&gt;, and the boolean in MQTT notifications. Whichever one your integration uses should be written into the delivery document, so both sides do not hold different ideas of what "online" means.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. After 2.00.070: do not just watch for RUNNING
&lt;/h2&gt;

&lt;p&gt;Connection and subscription behaviour changed in 2.00.070, and it directly affects troubleshooting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Registration is not subscription.&lt;/strong&gt; When a rule is enabled, the subscription requirement is registered even if the source broker is offline, and the subscription is attempted once the connection recovers. But subscription is only confirmed on &lt;strong&gt;SUBACK&lt;/strong&gt;. Failed subscriptions retry every 3 seconds while connected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No buffering when the target is down.&lt;/strong&gt; At startup, a rule waits for its own enabled target broker within the original connection timeout, then registers the source subscription anyway; when the target is unavailable it falls back to skipping the forward. There is &lt;strong&gt;no new message buffering and no offline redelivery guarantee.&lt;/strong&gt; The forwarder is not a reliable queue — messages produced during an outage are not replayed afterwards.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No exactly-once.&lt;/strong&gt; MQTT redelivery or duplicate sends at the source can produce duplicate messages; if the business needs deduplication, carry a message identifier.&lt;/p&gt;

&lt;p&gt;In short: &lt;strong&gt;do not conclude that forwarding works from "rule enabled" or "broker connected" — verify the actual message flow.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Two more behaviours: forwarder brokers for the same organisation load in parallel, so one slow connection does not make the others queue. When several scripts share a topic, removing one does not affect the others; unsubscribe only happens once the last callback is removed.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. Troubleshooting: work this order
&lt;/h2&gt;

&lt;p&gt;The official five steps hold up well in practice:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirm both source and target brokers are enabled and the target shows &lt;code&gt;RUNNING&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Check &lt;code&gt;ErrMsg&lt;/code&gt;, host, port, credentials and TLS certificates.&lt;/li&gt;
&lt;li&gt;Confirm the forwarder itself is enabled (not merely saved).&lt;/li&gt;
&lt;li&gt;Confirm &lt;code&gt;Subscription Topic&lt;/code&gt; matches the real message topic — especially whether &lt;code&gt;{tenant}&lt;/code&gt; was substituted and whether a path level is missing or extra.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disable the custom script temporarily&lt;/strong&gt; and confirm the raw message passes through; then debug the script's return value.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 5 is the one most often skipped and the one that most often finds the problem. The classic beginner error is a script returning &lt;code&gt;null&lt;/code&gt; (because &lt;code&gt;msg.telemetry_data&lt;/code&gt; was absent) without realising it — the symptom looks like "data isn't being forwarded," when in fact the script is throwing it away.&lt;/p&gt;

&lt;p&gt;Two operational extras:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every save of a forwarder script creates a version snapshot&lt;/strong&gt;, viewable and restorable in the editor. Restoring creates a new version record and does not delete history — a broken script is recoverable.&lt;/li&gt;
&lt;li&gt;The system platform maintains &lt;strong&gt;public forwarders&lt;/strong&gt;: public rules are visible but read-only in the tenant; selecting a specific organisation lets a rule reference that organisation's brokers and &lt;code&gt;org_params&lt;/code&gt;. Useful when multiple organisations share one forwarding pattern.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  11. Acceptance checklist
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Pass criterion&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Path&lt;/td&gt;
&lt;td&gt;Uses "Advanced → Broker + Forwarder"; does not rely on the deactivated legacy third-party switch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Source broker&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ThinkLink&lt;/code&gt; (decoded) or &lt;code&gt;AS&lt;/code&gt; (raw) chosen deliberately, not by accident&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Target broker&lt;/td&gt;
&lt;td&gt;Type &lt;code&gt;Customize&lt;/code&gt;; state &lt;code&gt;RUNNING&lt;/code&gt;; &lt;code&gt;ErrMsg&lt;/code&gt; empty&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Subscription topic&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;{tenant}&lt;/code&gt; replaced with the real organisation account; path levels match the documented format&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Rule enabled&lt;/td&gt;
&lt;td&gt;Forwarder "enabled" is on (not just saved); SUBACK received&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Real message flow&lt;/td&gt;
&lt;td&gt;Verified by subscribing on the target broker, not inferred from status&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Script behaviour&lt;/td&gt;
&lt;td&gt;Pass-through validated first; with the script on, no unintended &lt;code&gt;null&lt;/code&gt; discards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Field naming&lt;/td&gt;
&lt;td&gt;Keys under &lt;code&gt;telemetry_data&lt;/code&gt; confirmed against a real message, not guessed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;HA / Node-RED side&lt;/td&gt;
&lt;td&gt;Entities or flow read values that match what the platform shows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;Online status&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;notify_offline="TRUE"&lt;/code&gt; set; status topic subscribed and not discarded by the script&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;Write control&lt;/td&gt;
&lt;td&gt;Read back and confirm within N reporting cycles; "send succeeded" is not acceptance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;Disconnection behaviour&lt;/td&gt;
&lt;td&gt;Confirmed that messages during an outage are not redelivered; dedup or compensation designed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;Versioning&lt;/td&gt;
&lt;td&gt;Forwarder script version, platform version and target broker config recorded&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  12. Closing
&lt;/h2&gt;

&lt;p&gt;From 2.00.066, ThinkLink replaced "integrate with one specific platform" with "integrate with any MQTT endpoint." For Home Assistant and Node-RED that is not bad news — a built-in integration can only offer one fixed payload shape, whereas the forwarder offers somewhere to write your own translation.&lt;/p&gt;

&lt;p&gt;The cost is that the script is yours to write and debug. But the boundaries are clear: topics follow a documented format, the script has one entry function, the return value has three fields, and there is a documented five-step troubleshooting order. What actually goes wrong is detail — &lt;code&gt;{tenant}&lt;/code&gt; left as a placeholder, a script silently returning &lt;code&gt;null&lt;/code&gt;, status messages carrying no &lt;code&gt;telemetry_data&lt;/code&gt;, messages during a target outage never being replayed.&lt;/p&gt;

&lt;p&gt;Put those details into an acceptance checklist. It is faster than trial and error.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Related reading&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Article 21: Writing Payload Decoders in ThinkLink — From 15 Bytes to Readable Data&lt;/li&gt;
&lt;li&gt;Article 22: ThinkLink Trigger Models and Alarm Rules — Alerts That Arrive on Time and Get Read&lt;/li&gt;
&lt;li&gt;Article 24: Connecting ThinkLink to BACnet/IP and Modbus TCP — From Field Mapping to YABE Verification&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Based on ThinkLink official documentation; paths and parameters follow your actual platform version. Official manuals:&lt;br&gt;
&lt;a href="https://www.think-link.net/docs/en/Advanced/MQTTForwarder.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Advanced/MQTTForwarder.html&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.think-link.net/docs/en/QuickStart/SystemManagement/ServerConfiguration.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/QuickStart/SystemManagement/ServerConfiguration.html&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.think-link.net/docs/en/Protocol/ThinkLinkProtocol.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Protocol/ThinkLinkProtocol.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>Connecting ThinkLink to BACnet/IP and Modbus TCP: From Field Mapping to YABE Verification</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Mon, 26 Oct 2026 09:35:08 +0000</pubDate>
      <link>https://dev.to/manthink/connecting-thinklink-to-bacnetip-and-modbus-tcp-from-field-mapping-to-yabe-verification-4b3o</link>
      <guid>https://dev.to/manthink/connecting-thinklink-to-bacnetip-and-modbus-tcp-from-field-mapping-to-yabe-verification-4b3o</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3mb7g0azed0r4wc6ow8c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3mb7g0azed0r4wc6ow8c.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Currency note.&lt;/strong&gt; Figures in this article are quoted in CNY. Where a source price was published in another currency, the CNY equivalent is converted at the fixed October 2026 reference rate of &lt;strong&gt;1 USD ≈ 6.71 CNY&lt;/strong&gt;, with the original currency shown alongside. Publicly listed prices come from different sources with inconsistent scopes; they indicate order of magnitude and are not a sourcing recommendation.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;A LoRaWAN project is finished. The sensors are mounted, the gateway is online, and the platform shows clean curves. Then the customer asks a single question: can this data get into the building management system we already have?&lt;/p&gt;

&lt;p&gt;What follows that question is work nobody particularly wants. Building management speaks BACnet. The plant floor speaks Modbus. LoRaWAN speaks neither. So you either buy another protocol gateway, or you pay an integrator to write a bridge service that translates MQTT messages into point values. That work produces no new data — it only makes data you already have readable by a system that cannot read it. And yet it has a price, a schedule, and a change-management process attached to it that runs for the life of the project.&lt;/p&gt;

&lt;p&gt;ThinkLink ships a built-in BACnet/IP service and a built-in Modbus TCP Server in its TKE (edge server) and TKG (in-gateway) forms, and that is exactly what they are for. This article walks the integration in the order it actually happens: when you can use them, how fields become points, what has to be checked before you hand over a point list, and why "the point table saved successfully" is not the same thing as "the BMS is reading values."&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Scope First: BACnet and Modbus Are TKE / TKG Only
&lt;/h2&gt;

&lt;p&gt;This is the first thing to settle, because it is a hard boundary rather than a configuration issue.&lt;/p&gt;

&lt;p&gt;The official documentation states the same thing in three places: &lt;strong&gt;the BACnet service is supported only on independently deployed TKE devices and gateways running TKL (TKG); the cloud version does not provide it.&lt;/strong&gt; The Modbus TCP Server carries an identical restriction.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Deployment form&lt;/th&gt;
&lt;th&gt;BACnet/IP&lt;/th&gt;
&lt;th&gt;Modbus TCP Server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cloud (public SaaS)&lt;/td&gt;
&lt;td&gt;Not supported&lt;/td&gt;
&lt;td&gt;Not supported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TKE (local server / industrial PC)&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TKG (embedded in gateway, e.g. GDO51 / GDI51)&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is not a feature that was withheld. It follows from the protocol. BACnet/IP runs on &lt;strong&gt;UDP 47808 (0xBAC0)&lt;/strong&gt; by default, and device discovery depends on local broadcast: a workstation sends a Who-Is broadcast and every device that hears it answers with an I-Am. That works inside one broadcast domain. IP routers do not forward broadcasts, so crossing subnets requires a BBMD (BACnet Broadcast Management Device). A multi-tenant public cloud has neither a customer's on-premise broadcast domain nor a fixed UDP port into their internal network. This is architecture, not backlog.&lt;/p&gt;

&lt;p&gt;So align sales and pre-sales on this before the proposal goes out: &lt;strong&gt;if the customer is on Cloud, the data leaves via the MQTT forwarder or the REST API, and the integrator lands it into points on their side.&lt;/strong&gt; Promising "BACnet points straight from the cloud into your BMS" is a commitment that fails during implementation.&lt;/p&gt;

&lt;p&gt;There is a second operational constraint that is easy to miss: &lt;strong&gt;a single backend process runs the BACnet service for one organisation only.&lt;/strong&gt; Starting BACnet in another organisation stops the previous organisation's instance; you cannot run multiple organisations in parallel on different ports within one process. The Modbus TCP Server behaves the same way — one instance serves one organisation, and switching service organisation replaces the running instance. A multi-tenant edge deployment (one TKE serving several subsidiaries, say) has to be designed for explicitly. Parallel operation is not the default.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. What This Segment Actually Costs: The Industry Prices by the Point
&lt;/h2&gt;

&lt;p&gt;Building automation and industrial integration share a unit of account: the &lt;strong&gt;point&lt;/strong&gt;. One temperature, one valve state, one meter reading — each is a point. Once you internalise that, it becomes clear what a built-in protocol service removes.&lt;/p&gt;

&lt;p&gt;Two sets of publicly listed figures (2026):&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;China — BA system software pricing, software and commissioning included&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Listed price&lt;/th&gt;
&lt;th&gt;Per point&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;200 control points&lt;/td&gt;
&lt;td&gt;~CNY 18,000&lt;/td&gt;
&lt;td&gt;~CNY 90/point&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500 control points&lt;/td&gt;
&lt;td&gt;~CNY 26,000&lt;/td&gt;
&lt;td&gt;~CNY 52/point&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1,000 control points&lt;/td&gt;
&lt;td&gt;~CNY 38,000&lt;/td&gt;
&lt;td&gt;~CNY 38/point&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2,000 control points&lt;/td&gt;
&lt;td&gt;~CNY 46,000&lt;/td&gt;
&lt;td&gt;~CNY 23/point&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The broader industry range for medium projects (roughly 2,000–5,000 points) is about &lt;strong&gt;CNY 80–200 per point&lt;/strong&gt;, covering controllers, sensors, software licences and commissioning; high-spec environments such as hospital clean rooms and data centres push past CNY 300 per point. The two sets differ in scope — the first is mostly software platform, the second includes hardware and installation — so treat both as order-of-magnitude only.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Overseas retrofit pricing (original currency; CNY at 1 USD ≈ 6.71)&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Retrofit type&lt;/th&gt;
&lt;th&gt;Listed price&lt;/th&gt;
&lt;th&gt;Converted&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Equipment with native BACnet/Modbus, connected directly&lt;/td&gt;
&lt;td&gt;$200–500 / point&lt;/td&gt;
&lt;td&gt;~CNY 1,342–3,355 / point&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Equipment needing a protocol gateway&lt;/td&gt;
&lt;td&gt;$500–1,500 / point&lt;/td&gt;
&lt;td&gt;~CNY 3,355–10,065 / point&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Equipment over 20 years old, controller replacement&lt;/td&gt;
&lt;td&gt;$1,500–4,000 / point&lt;/td&gt;
&lt;td&gt;~CNY 10,065–26,840 / point&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The middle row is the one that matters: &lt;strong&gt;points that need a protocol gateway cost 2.5 to 3 times what directly connected points cost.&lt;/strong&gt; A 2026 UK BMS cost guide lands in the same place, quoting £300–600 per connected point and naming point count as the primary cost driver.&lt;/p&gt;

&lt;p&gt;That is the value of an embedded protocol service. It moves LoRaWAN data out of the "needs a protocol gateway" bucket and into the "connects directly" bucket. What it saves is not sensor money — it is the 2.5× multiplier on every point, plus the recurring cost of re-running the change process every time the point list moves.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. BACnet vs Modbus: You Are Delivering Objects, or You Are Delivering Addresses
&lt;/h2&gt;

&lt;p&gt;Both protocols expose platform data to a third-party system. What you hand over is completely different, and that is where selection usually goes wrong.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;BACnet/IP&lt;/th&gt;
&lt;th&gt;Modbus TCP Server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Data model&lt;/td&gt;
&lt;td&gt;Object model: Analog / Binary Input, Output, Value&lt;/td&gt;
&lt;td&gt;Register model: address plus bits or words&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-describing&lt;/td&gt;
&lt;td&gt;Yes — object name, description, units, data type&lt;/td&gt;
&lt;td&gt;No — everything is convention, carried in a spreadsheet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Discovery&lt;/td&gt;
&lt;td&gt;Broadcast Who-Is / I-Am; the BMS can find devices&lt;/td&gt;
&lt;td&gt;None; the client must be pre-configured with addresses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change notification&lt;/td&gt;
&lt;td&gt;COV subscription (&lt;code&gt;cov_increment&lt;/code&gt; threshold)&lt;/td&gt;
&lt;td&gt;None; the client polls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write path&lt;/td&gt;
&lt;td&gt;Write to an Output/Value object → bound RPC fires&lt;/td&gt;
&lt;td&gt;Write to a register → bound RPC fires&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Counterpart&lt;/td&gt;
&lt;td&gt;Building management systems, DDC controllers&lt;/td&gt;
&lt;td&gt;SCADA, HMI, PLC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transport&lt;/td&gt;
&lt;td&gt;UDP, default 47808&lt;/td&gt;
&lt;td&gt;TCP, default 502&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One line separates them: &lt;strong&gt;BACnet for building automation, Modbus for the industrial side.&lt;/strong&gt; You can run both at once — a single TKE can publish BACnet objects to the BMS and Modbus registers to SCADA independently. They have separate service permissions and separate ports.&lt;/p&gt;

&lt;p&gt;The test is simple. If the other system can scan the network and list point names by itself, you are in the BACnet world. If the other engineer opens with "send me the point list and tell me what 40001 is," you are in the Modbus world.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. BACnet in Five Steps, in This Order
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1 — the system administrator enables the service permission
&lt;/h3&gt;

&lt;p&gt;From 2.00.077, System Platform → System Configuration carries two independent switches, &lt;strong&gt;ModbusTcpServer&lt;/strong&gt; and &lt;strong&gt;BACnet&lt;/strong&gt;, stored in &lt;code&gt;system_param.service_enable&lt;/code&gt; (not as a sub-field of &lt;code&gt;config&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Two details matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Only a JSON boolean &lt;code&gt;false&lt;/code&gt; disables it.&lt;/strong&gt; A missing key, &lt;code&gt;null&lt;/code&gt;, or an empty object all default to allowed. Do not leave the field blank.&lt;/li&gt;
&lt;li&gt;Disabling stops the service, blocks configuration and point-table operations, and prevents both manual start and automatic recovery. Configuration and point tables are &lt;strong&gt;retained&lt;/strong&gt;; re-enabling requires a &lt;strong&gt;manual restart&lt;/strong&gt; — nothing starts on its own.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2 — configure the BACnet fields in the thing model
&lt;/h3&gt;

&lt;p&gt;Before enabling the BACnet service, you must configure BACnet attributes for the fields you want to expose, inside the thing model. The thing model field's &lt;code&gt;unit&lt;/code&gt; maps to the BACnet object's &lt;code&gt;units&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is the most common source of rework: &lt;strong&gt;a deliverable thing model has four parts — the parser script, the display fields, the Modbus mapping, and the BACnet fields.&lt;/strong&gt; A working script that parses data correctly is not the same as having the BACnet fields configured. Article 21 covered the parser script and article 22 covered triggers; this is a fourth, separate block of configuration work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3 — enable BACnet on the device
&lt;/h3&gt;

&lt;p&gt;Device details → Basic Information, enable BACnet (on the Modbus side the equivalent is setting &lt;code&gt;modbus_tcp&lt;/code&gt; to &lt;code&gt;TRUE&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Only devices with this switch on get mapped.&lt;/strong&gt; When you generate a point table by thing model, it covers only devices &lt;strong&gt;already bound to that thing model and already enabled for BACnet&lt;/strong&gt; — it does not generate objects for every device in the tenant.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4 — generate the point table
&lt;/h3&gt;

&lt;p&gt;Operations → BACnet → Incremental Generate → select the thing model → confirm.&lt;/p&gt;

&lt;p&gt;You can also add objects manually. Constraints for the manual form:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Eui&lt;/td&gt;
&lt;td&gt;Required; select the device to map&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;data_from&lt;/td&gt;
&lt;td&gt;From 2.00.085, free text; defaults to &lt;code&gt;telemetry_data&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;thing_model&lt;/td&gt;
&lt;td&gt;Required for telemetry sources only; attribute sources save it as an empty string&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;field_name&lt;/td&gt;
&lt;td&gt;Required; a thing model field for telemetry, an attribute path for attribute sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;object_type&lt;/td&gt;
&lt;td&gt;Defaults to &lt;code&gt;analogOutput&lt;/code&gt;; choose according to the actual read/write purpose&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;object_id&lt;/td&gt;
&lt;td&gt;Required; 0–4194303&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;object_name&lt;/td&gt;
&lt;td&gt;Required; the name the integrator will see&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;default_value&lt;/td&gt;
&lt;td&gt;Defaults to 0; lower bound 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;units&lt;/td&gt;
&lt;td&gt;Defaults to &lt;code&gt;noUnits&lt;/code&gt;; mapped from the thing model field's &lt;code&gt;unit&lt;/code&gt; when one is selected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cov_increment&lt;/td&gt;
&lt;td&gt;Required; defaults to 0, lower bound 0; change-notification threshold&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;description, RPC&lt;/td&gt;
&lt;td&gt;Optional; bind an RPC when you need write control&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From 2.00.077 the "Apply point table" button is gone from the UI. Saving, deleting, importing, incrementally generating and renumbering objects &lt;strong&gt;automatically synchronise the running service&lt;/strong&gt;. The reverse is also true: &lt;strong&gt;saving a point table does not start a stopped service&lt;/strong&gt; — starting is a separate action in the service configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5 — configure service parameters and restart
&lt;/h3&gt;

&lt;p&gt;System Management → Server Configuration → BACnet. Fill in the network and device parameters, &lt;strong&gt;click Submit, then click Restart&lt;/strong&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Parameter&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;Reference value&lt;/th&gt;
&lt;th&gt;Editable&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;IP address&lt;/td&gt;
&lt;td&gt;Local IP of the host running TKL; &lt;code&gt;0.0.0.0&lt;/code&gt; binds all interfaces&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.0.0.0&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Port&lt;/td&gt;
&lt;td&gt;BACnet listening port&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;47808&lt;/code&gt; (UDP, i.e. 0xBAC0)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Device ID&lt;/td&gt;
&lt;td&gt;Unique BACnet device identifier, must be unique in the system&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vendor Identifier&lt;/td&gt;
&lt;td&gt;Vendor identification number&lt;/td&gt;
&lt;td&gt;Per actual vendor&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Device Name&lt;/td&gt;
&lt;td&gt;Name shown in the BMS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;TKE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Max APDU Length Accepted&lt;/td&gt;
&lt;td&gt;Maximum accepted APDU length&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1024&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Segmentation Supported&lt;/td&gt;
&lt;td&gt;Current version does not enable segmentation through this field&lt;/td&gt;
&lt;td&gt;As shown in the form&lt;/td&gt;
&lt;td&gt;Confirm compatibility with the BMS party&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Reference values are for field configuration only — they do not mean the new-entry form is pre-filled. Read the existing configuration and confirm each item with the BMS integrator. Changing listening parameters still requires Submit followed by Restart.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Three Point-Table Constraints With Long Reach
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. object_id runs 0–4194303, and renumbering changes what the integrator is using
&lt;/h3&gt;

&lt;p&gt;The list offers a "renumber object id" action. It looks like housekeeping. It &lt;strong&gt;changes the object identifiers the integrator is already using&lt;/strong&gt; — the BMS addresses points by object instance number, so one renumbering pass on your side misaligns every point on theirs. After renumbering you must reissue the delivered point list and tell the integrator to reconfigure.&lt;/p&gt;

&lt;p&gt;The permitted range is 0–4194303, which reflects the 22-bit object instance number field in BACnet. BACnet device instance numbers must also be unique across the entire BACnet internetwork; duplicates produce intermittent faults that are genuinely unpleasant to diagnose, because the symptom is "sometimes it does not read," not "it never reads."&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;code&gt;data_from&lt;/code&gt; is free text, not an enum
&lt;/h3&gt;

&lt;p&gt;From 2.00.085, BACnet fields carry &lt;code&gt;data_from&lt;/code&gt;. Its type is a &lt;strong&gt;free string (varchar(32))&lt;/strong&gt;, not a fixed enum. Three values are suggested:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;data_from&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Meaning and configuration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;telemetry_data&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Default; &lt;code&gt;thing_model&lt;/code&gt; required, field read from &lt;code&gt;device.telemetry_data[thing_model]&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;server_attrs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reads an attribute path from &lt;code&gt;device.server_attrs&lt;/code&gt;; no thing model, saved as &lt;code&gt;""&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;shared_attrs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reads an attribute path from &lt;code&gt;device.shared_attrs&lt;/code&gt;; saved as &lt;code&gt;""&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Any other string&lt;/td&gt;
&lt;td&gt;Reads from the device's own attributes; falls back to &lt;code&gt;default_value&lt;/code&gt; if the source does not exist&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Memorise the fallback rule: &lt;strong&gt;unknown source, missing value, null, empty string or whitespace all fall back to &lt;code&gt;default_value&lt;/code&gt;; but numeric &lt;code&gt;0&lt;/code&gt; and boolean &lt;code&gt;false&lt;/code&gt; are preserved.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Which leads to the important conclusion: &lt;strong&gt;a default value is not evidence of the device's real state.&lt;/strong&gt; A fallback to 0 may mean "the value is 0" or "the source does not exist," and the BMS displays both identically.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The unique key is a four-tuple, not a field name
&lt;/h3&gt;

&lt;p&gt;An object's business key is &lt;code&gt;(eui, data_from, thing_model, field_name)&lt;/code&gt;. BACnet fields in the thing model use the "source + field name" composite key. &lt;strong&gt;Same-named fields from different sources can coexist&lt;/strong&gt; — so do not deduplicate on field name alone; you will delete the wrong one.&lt;/p&gt;

&lt;p&gt;Related: adding an attribute object directly does not require a thing model, but incremental generation by thing model still only covers devices bound to that model with BACnet enabled, and &lt;strong&gt;will not generate status objects for all devices automatically.&lt;/strong&gt; If you want an "online" point, add it manually.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Turning "Offline" Into a Point the BMS Can Read
&lt;/h2&gt;

&lt;p&gt;A BMS needs to know whether a sensor is still alive. On the ThinkLink side, you expose online status as an attribute point.&lt;/p&gt;

&lt;p&gt;Three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the device's basic information, set &lt;code&gt;notify_offline = "TRUE"&lt;/code&gt; and configure the real heartbeat period (confirm the source of the detection state).&lt;/li&gt;
&lt;li&gt;Add a BACnet object manually: pick the real device EUI and a non-conflicting object ID/name, set source to &lt;code&gt;server_attrs&lt;/code&gt;, field to &lt;code&gt;_online&lt;/code&gt;, type to &lt;code&gt;binaryInput&lt;/code&gt;, units to &lt;code&gt;noUnits&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Save the point table, confirm the running service synchronised, then check online, timeout-offline and recovery from the BMS.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Key fields when creating it (EUI, object identifier and other required fields also apply):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"data_from": "server_attrs",&lt;br&gt;
"thing_model": "",&lt;br&gt;
"field_name": "_online",&lt;br&gt;
"object_type": "binaryInput",&lt;br&gt;
"units": "noUnits",&lt;br&gt;
"default_value": 0&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;One warning belongs in the handover document: &lt;strong&gt;a &lt;code&gt;default_value&lt;/code&gt; of 0 does not prove the detection result is offline&lt;/strong&gt; — a missing attribute also returns 0. With offline notification disabled, &lt;code&gt;_online&lt;/code&gt; can freeze at its last state.&lt;/p&gt;

&lt;p&gt;Online status also has three non-interchangeable meanings on the platform (covered in article 22): the activity time in the device list, &lt;code&gt;server_attrs.online&lt;/code&gt; (a number 1/0 maintained by the detector), and the boolean &lt;code&gt;data.online&lt;/code&gt; in MQTT notifications. &lt;code&gt;notify_offline&lt;/code&gt; is a string switch on the device or template, &lt;code&gt;"TRUE"&lt;/code&gt;/&lt;code&gt;"FALSE"&lt;/code&gt;, disabled by default — &lt;strong&gt;when it is not enabled, or missing, you may not treat the device as offline.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Modbus TCP: Four Register Types and Ten Encodings
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Three configuration steps
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;The system administrator enables ModbusTcpServer under organisation service permissions.&lt;/li&gt;
&lt;li&gt;System Management → Server Configuration → Modbus TCP Server: set the listening port (usually &lt;strong&gt;502&lt;/strong&gt;), Submit, then Restart.&lt;/li&gt;
&lt;li&gt;Device details → Basic Information: set &lt;code&gt;modbus_tcp&lt;/code&gt; to &lt;code&gt;TRUE&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Register mapping entries
&lt;/h3&gt;

&lt;p&gt;Operations → Modbus TCP → register list; add mappings for enabled devices:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Device EUI&lt;/td&gt;
&lt;td&gt;The device whose data is being mapped&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Register type&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;coils&lt;/code&gt; (1 bit, R/W) / &lt;code&gt;discrete_inputs&lt;/code&gt; (1 bit, read-only) / &lt;code&gt;holding_registers&lt;/code&gt; (16 bit, R/W) / &lt;code&gt;input_registers&lt;/code&gt; (16 bit, read-only)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Register address&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Hex&lt;/strong&gt;; the platform detects conflicts, addresses must be unique within a type&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data source&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;telemetry_data&lt;/code&gt; / &lt;code&gt;shared_attrs&lt;/code&gt; / &lt;code&gt;server_attrs&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Field path (&lt;code&gt;name_path&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;The field name; multi-level paths supported, e.g. &lt;code&gt;temperature&lt;/code&gt;, &lt;code&gt;sensor.value&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Value type&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;string&lt;/code&gt;, &lt;code&gt;boolean&lt;/code&gt;, &lt;code&gt;Int16LE&lt;/code&gt;, &lt;code&gt;Int16BE&lt;/code&gt;, &lt;code&gt;Int32LE&lt;/code&gt;, &lt;code&gt;Int32BE&lt;/code&gt;, &lt;code&gt;FloatLE&lt;/code&gt;, &lt;code&gt;FloatBE&lt;/code&gt;, &lt;code&gt;DoubleLE&lt;/code&gt;, &lt;code&gt;DoubleBE&lt;/code&gt;; &lt;strong&gt;there is no generic &lt;code&gt;number&lt;/code&gt; option&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RPC binding&lt;/td&gt;
&lt;td&gt;Optional; when the client writes this register, the bound RPC fires&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Three form-filling traps
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Addresses are hex, register counts are decimal.&lt;/strong&gt; Do not mix the two.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The register count is computed from the type and cannot be edited.&lt;/strong&gt; Selecting &lt;code&gt;FloatBE&lt;/code&gt; shows a count of 2. When you allocate the following address, account for the full length occupied — a FloatBE consumes two 16-bit registers, so the next point must start two addresses later. Checking only the start address will overlap them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LE/BE is an encoding choice and must match how the reader interprets bytes.&lt;/strong&gt; Choose &lt;code&gt;FloatBE&lt;/code&gt; on the platform while the SCADA decodes little-endian and you get a completely wrong number, with no error raised.&lt;/p&gt;

&lt;h3&gt;
  
  
  Read and write behaviour
&lt;/h3&gt;

&lt;p&gt;Reading: when the client reads a register, ThinkLink returns the current value of the mapped field. The value refreshes on each device uplink — &lt;strong&gt;no polling configuration is needed&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Writing: the register &lt;strong&gt;must have an RPC bound&lt;/strong&gt;. ThinkLink calls the bound RPC with the written value as a parameter, in the form &lt;code&gt;{ _eui, [field_name]: value }&lt;/code&gt;, with the call source marked &lt;code&gt;bacnet_server&lt;/code&gt; (the same mechanism applies on the Modbus side).&lt;/p&gt;

&lt;p&gt;Typical use: SCADA writes a &lt;code&gt;holding_registers&lt;/code&gt; value to change the sampling interval; ThinkLink fires a "set sampling interval" RPC down to the device.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. The Write Path: Three Things to Accept Separately
&lt;/h2&gt;

&lt;p&gt;This is where integration disputes come from. The documentation is deliberately careful in its wording:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A successful BACnet write does not mean the device has executed it; check the device reply or a subsequent uplink.&lt;br&gt;
Write accepted, device execution succeeded, and attribute persistence completed must be verified separately.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The three stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Write accepted&lt;/strong&gt; — the platform received the request and the object value in the point table may already be updated. This completes in seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Device execution succeeded&lt;/strong&gt; — the RPC reaches the device and the device actually changes the parameter. For a Class A LoRaWAN end device, a downlink can only be sent in the receive windows after an uplink (RX1 at roughly 1 s, RX2 at roughly 2 s). A device that reports every ten minutes may take ten minutes to receive the command.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attribute persistence completed&lt;/strong&gt; — the device reports the new value back, it is written to attributes, and the BMS sees the real result on its next read.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A failure at any stage presents as "the BMS shows the write succeeded but the device did not change." If the RPC fails or the device reports its original value, a later attribute notification can push the true cached value back — but that push arrives on the next attribute update, not immediately.&lt;/p&gt;

&lt;p&gt;So on the acceptance sheet, write control should be specified as "read back and confirm within N reporting cycles," not "write operation returned success."&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Network and Ports: 47808 Does Not Work Just Because You Configured It
&lt;/h2&gt;

&lt;p&gt;The networking requirements for BACnet/IP are more specific than most people expect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UDP 47808, both directions.&lt;/strong&gt; Firewall rules must permit UDP 47808 inbound and outbound. An outbound-only rule means the workstation can send Who-Is and will never see an I-Am come back.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Broadcast only works inside one broadcast domain.&lt;/strong&gt; The workstation sends a Who-Is broadcast and only devices on the same Layer-2 segment answer. Put an IP router in between and the router does not forward broadcasts, so discovery fails silently — the workstation reports "nothing found," never "network unreachable." The standard fix for crossing subnets is a BBMD: one per subnet holding devices, each carrying a Broadcast Distribution Table naming its peers. A broadcast is unicast to those peers and re-broadcast locally by each.&lt;/p&gt;

&lt;p&gt;A few hard rules when configuring BBMDs: the distribution table must match on every BBMD — a subnet listed in one table and omitted from the others is reachable in one direction only; the BBMD's own address must be static, because foreign-device registrations and peer table entries point at it by address; and &lt;strong&gt;two BBMDs on the same subnet is a configuration error, not redundancy&lt;/strong&gt;, producing duplicate traffic and duplicate I-Am answers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NAT breaks BACnet/IP.&lt;/strong&gt; BACnet/IP carries the originating address inside the message payload — in the Forwarded-NPDU a BBMD sends, and in a foreign device registration. NAT rewrites the IP header and leaves the payload alone, so requests get out and replies never arrive. The workable path is a routed or VPN connection, not address translation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Site-to-site VPNs and wireless bridges frequently drop broadcast.&lt;/strong&gt; Unicast working is not evidence that broadcast works; supervision across such a link normally needs foreign-device registration rather than plain discovery.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One deployment-level note.&lt;/strong&gt; The TKE Docker deployment guide lists host inbound ports (80/8080, 443, 18083, 18084, 1883, 8883, 8083, 8084, 1700 UDP, 9000, 9001) and &lt;strong&gt;does not include 47808 or 502&lt;/strong&gt;. The installer does not create mappings or allow rules for these two services; the deployment team has to confirm container port mapping, host firewall and security group rules themselves. Miss this and the symptom is "the platform says the service is running, but the BMS finds nothing."&lt;/p&gt;

&lt;p&gt;One last item is a security requirement rather than an option: &lt;strong&gt;BACnet was designed for isolated control networks, and much of the installed base has little or no authentication.&lt;/strong&gt; Once the control network is reachable from the business network, that assumption no longer holds. Both UDP 47808 and TCP 502 should be reachable only from the building automation or SCADA segment — never from the public internet.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. Verifying With YABE, and Delivering the Point List
&lt;/h2&gt;

&lt;h3&gt;
  
  
  A five-minute loop with YABE
&lt;/h3&gt;

&lt;p&gt;YABE (Yet Another BACnet Explorer) is the common tool for browsing and debugging BACnet devices. Once configured, connect YABE to ThinkLink to discover the published BACnet devices and their object properties, and confirm the data is being published correctly.&lt;/p&gt;

&lt;p&gt;Work through the checks in this order; each one isolates a different class of problem:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Pass criterion&lt;/th&gt;
&lt;th&gt;First suspect if it fails&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Device discovery&lt;/td&gt;
&lt;td&gt;YABE sees the Device ID and Device Name&lt;/td&gt;
&lt;td&gt;UDP 47808 blocked / no BBMD across subnets / service not restarted&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Object list&lt;/td&gt;
&lt;td&gt;Count and object_ids match the point table&lt;/td&gt;
&lt;td&gt;BACnet not enabled on the device / thing model BACnet fields not configured&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read value&lt;/td&gt;
&lt;td&gt;presentValue matches platform telemetry&lt;/td&gt;
&lt;td&gt;Wrong field name or source / value fell back to default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Units&lt;/td&gt;
&lt;td&gt;units shows the expected unit (e.g. degreesCelsius)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;unit&lt;/code&gt; not filled in the thing model field&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;COV&lt;/td&gt;
&lt;td&gt;Notification arrives when change exceeds the threshold&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;cov_increment&lt;/code&gt; set to 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write control&lt;/td&gt;
&lt;td&gt;Device read-back changes after writing an Output/Value&lt;/td&gt;
&lt;td&gt;No RPC bound / Class A downlink window not reached&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Modbus has no general-purpose browser equivalent; you typically use a Modbus master utility (Modbus Poll and similar) to read addresses one by one against the point list. Focus on two things: the address convention (hex vs decimal) and byte order (LE vs BE).&lt;/p&gt;

&lt;h3&gt;
  
  
  Delivering the point list
&lt;/h3&gt;

&lt;p&gt;Both BACnet and Modbus point lists export to Excel and import back for bulk configuration. The export contains object type, address, name, description, data type, units and read/write permissions — exactly what the integrator needs to configure their client.&lt;/p&gt;

&lt;p&gt;One caveat on import: &lt;strong&gt;entries with an existing ID are overwritten.&lt;/strong&gt; This is the same class of risk as the Excel migration traps covered in article 23 — export a backup before importing, because the overwrite cannot be rolled back.&lt;/p&gt;

&lt;p&gt;Two delivery recommendations:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Version the point list.&lt;/strong&gt; Record the point list version alongside the thing model version and the platform version. If BACnet object identifiers shift, every point on the BMS side is misaligned, and retrospective investigation costs far more than keeping a record.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deliver first, then commission together.&lt;/strong&gt; Hand the point list to the integrator, let them configure their client, then commission jointly. That is much faster than adjusting the point list during commissioning. Point-table saves do synchronise the running service automatically, but every change forces the other side to reconfigure.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  11. Acceptance Checklist
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Pass criterion&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Deployment form&lt;/td&gt;
&lt;td&gt;Confirmed TKE or TKG; Cloud exposes neither BACnet nor Modbus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Service permission&lt;/td&gt;
&lt;td&gt;Both BACnet and ModbusTcpServer explicitly &lt;code&gt;true&lt;/code&gt; in system configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Thing model&lt;/td&gt;
&lt;td&gt;All four blocks done: parser script, display fields, Modbus mapping, BACnet fields&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Device switch&lt;/td&gt;
&lt;td&gt;BACnet / &lt;code&gt;modbus_tcp&lt;/code&gt; enabled on target devices&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Service parameters&lt;/td&gt;
&lt;td&gt;Device ID unique network-wide; Port agreed with the BMS party; submitted and restarted&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Port reachability&lt;/td&gt;
&lt;td&gt;UDP 47808 open both directions (BBMD deployed if crossing subnets); TCP 502 open to the control segment only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Point list completeness&lt;/td&gt;
&lt;td&gt;Object/address, name, data type, units, R/W permission all present; write points have RPCs bound&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Read correctness&lt;/td&gt;
&lt;td&gt;YABE / Modbus master reads match platform telemetry, units correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;Status point&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;_online&lt;/code&gt; point exists and online, timeout-offline and recovery have all been tested&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;COV&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;cov_increment&lt;/code&gt; set to a real precision value, not 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;Write control&lt;/td&gt;
&lt;td&gt;Confirmed by read-back over reporting cycles, not by write success alone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;Runtime monitoring&lt;/td&gt;
&lt;td&gt;No point-table sync errors or retries; service restarts automatically after abnormal exit, and does not resurrect after a manual stop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;Deliverables&lt;/td&gt;
&lt;td&gt;Point list Excel exported and versioned; backup taken before any import&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  12. Closing
&lt;/h2&gt;

&lt;p&gt;Getting LoRaWAN data into a BMS or SCADA is not fundamentally hard — the protocols are public and a bridge can always be written. The real cost is that every point has to be configured by someone, checked by someone, and changed again by someone throughout the project's life. The industry prices by the point; points that need a protocol gateway cost 2.5 to 3 times what direct points cost. That number prices integration labour, not software features.&lt;/p&gt;

&lt;p&gt;ThinkLink's built-in BACnet/IP and Modbus TCP on TKE and TKG remove that segment. What they do not remove is &lt;strong&gt;engineering discipline&lt;/strong&gt;: BACnet is available only in the self-hosted forms, one process serves one organisation, renumbering a point list breaks the integrator's configuration, a successful write is not a successful execution, and UDP 47808 needs two-way rules plus a BBMD once you cross a subnet.&lt;/p&gt;

&lt;p&gt;All of these are documented. They are just spread across different pages. Collecting them into an acceptance checklist is the cheapest way to get the integration right the first time.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Related reading&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Article 21: ThinkLink Thing Model Decoder Scripts in Practice — Turning 15 Bytes Into a Readable Table&lt;/li&gt;
&lt;li&gt;Article 22: ThinkLink Trigger Models and Alarm Rules in Practice — On Time, Not Spammy, To the Right Person&lt;/li&gt;
&lt;li&gt;Article 23: ThinkLink Edge On-Premises Deployment in Practice — What "Data Never Leaves the Plant" Actually Requires&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Based on official ThinkLink documentation (versions 2.00.077–2.00.085). Configuration paths and parameters follow your deployed version. Official manuals:&lt;br&gt;
&lt;a href="https://www.think-link.net/docs/en/Maintenance/BACnet.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Maintenance/BACnet.html&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.think-link.net/docs/en/Maintenance/ModbusTCP.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/Maintenance/ModbusTCP.html&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.think-link.net/docs/en/QuickStart/SystemManagement/ServerConfiguration.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/en/QuickStart/SystemManagement/ServerConfiguration.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>ThinkLink Edge On-Premises Deployment in Practice: What "Data Never Leaves the Plant" Actually Requires</title>
      <dc:creator>manthink</dc:creator>
      <pubDate>Fri, 23 Oct 2026 09:06:53 +0000</pubDate>
      <link>https://dev.to/manthink/thinklink-edge-on-premises-deployment-in-practice-what-data-never-leaves-the-plant-actually-561e</link>
      <guid>https://dev.to/manthink/thinklink-edge-on-premises-deployment-in-practice-what-data-never-leaves-the-plant-actually-561e</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7c8xxh6p6s4csc4sqk7p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7c8xxh6p6s4csc4sqk7p.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Currency note.&lt;/strong&gt; Figures were collected from Chinese public channels in October 2026. Where a price was quoted in CNY, the USD figure is converted at the fixed October 2026 reference rate of &lt;strong&gt;1 USD ≈ 6.71 CNY&lt;/strong&gt;. Hardware prices are indicative of order of magnitude and are not a sourcing recommendation.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;"Data must not leave the plant." It shows up in industrial IoT tenders as a single line, usually in the third clause of the technical specification, with no further explanation. The integrator wins the bid, buys an industrial PC, installs the on-premises version of the IoT platform, passes acceptance, and the job looks done.&lt;/p&gt;

&lt;p&gt;The problem is that the sentence describes &lt;strong&gt;where data sits&lt;/strong&gt;. It says nothing about &lt;strong&gt;how data moves inside the plant&lt;/strong&gt;. Once you place a seven-container platform on the shop-floor network, questions do not disappear because the data stays local — is MQTT in cleartext, who can reach the object-storage console, how large will the history table be in twelve months. Centralising data tends to enlarge the internal attack surface, not shrink it.&lt;/p&gt;

&lt;p&gt;This article walks through a ThinkLink Edge (TKE) deployment in the order it actually happens. The focus is not the install command — it is the set of things that are usually discovered &lt;em&gt;after&lt;/em&gt; the install, and that should have been settled before the machine was ordered.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Before You Buy Anything: Three Questions That Decide Whether You Need TKE
&lt;/h2&gt;

&lt;p&gt;ThinkLink ships in three deployment forms: public-cloud SaaS (Cloud), self-hosted on a local server (TKE / ThinkLink Edge), and embedded inside a gateway (TKG). All three share the same thing models, RPC definitions and trigger logic, and assets can be migrated between them. That is what makes it safe to defer the decision — up to a point.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Cloud&lt;/th&gt;
&lt;th&gt;TKE (Edge)&lt;/th&gt;
&lt;th&gt;TKG (in-gateway)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where it runs&lt;/td&gt;
&lt;td&gt;Public-cloud SaaS&lt;/td&gt;
&lt;td&gt;Local server / industrial PC, self-hosted&lt;/td&gt;
&lt;td&gt;Inside a ManThink gateway (e.g. GDO51 / GDI51)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Device ceiling&lt;/td&gt;
&lt;td&gt;1,000 (free, permanently)&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data throughput&lt;/td&gt;
&lt;td&gt;~100k messages/day&lt;/td&gt;
&lt;td&gt;No stated ceiling&lt;/td&gt;
&lt;td&gt;~10k messages/day&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reference hardware&lt;/td&gt;
&lt;td&gt;Nothing to buy&lt;/td&gt;
&lt;td&gt;8-core / 8 GB / 64 GB storage&lt;/td&gt;
&lt;td&gt;Integrated (GDI51 has 32 GB eMMC)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connectivity&lt;/td&gt;
&lt;td&gt;Requires public internet&lt;/td&gt;
&lt;td&gt;Local, runs offline&lt;/td&gt;
&lt;td&gt;Local, no public internet needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best fit&lt;/td&gt;
&lt;td&gt;Evaluation, small pilots&lt;/td&gt;
&lt;td&gt;Data localisation, mid-to-large enterprises, private networks&lt;/td&gt;
&lt;td&gt;Small private deployments, brownfield retrofits, no extra server&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three questions to answer first:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do you actually need TKE?&lt;/strong&gt; Under 100 devices and under 10k messages a day, TKG embeds the network server directly in the gateway — no extra server, no server procurement cycle. A great many "data must not leave the plant" requirements are really about not pushing production data out through a public internet egress, and TKG satisfies that at a completely different cost structure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which side of 10k messages/day are you on?&lt;/strong&gt; That line separates TKG from TKE. 1,000 devices reporting every 10 minutes is 144,000 messages a day — above Cloud's reference density and far past TKG. 50 meters reporting hourly is 1,200 a day, which TKG handles comfortably.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who owns this machine afterwards?&lt;/strong&gt; TKE is a standing operational commitment: OS patches, Docker engine, seven containers, certificate renewals, backups. If the customer's IT department has not explicitly accepted ownership, you have created an unowned server, usually discovered in year two when the disk is full.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Hardware Selection: x64 Is a Hard Constraint, Not a Recommendation
&lt;/h2&gt;

&lt;p&gt;The official documentation carries two different statements of TKE's hardware requirements, and they do not agree. Worth laying out before you commit budget.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Statement A (product comparison table):&lt;/strong&gt; reference hardware 8 cores / 8 GB RAM / 64 GB storage, minimum 2 cores and 2 GB, architecture listed as &lt;strong&gt;ARM64 / x64&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Statement B (Docker deployment manual; install flow updated 2026-09-11, TLS section updated 2026-10-22):&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Privileges&lt;/td&gt;
&lt;td&gt;root (install commands use sudo)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPU architecture&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;x64 only (x86_64 / amd64)&lt;/strong&gt;, minimum 2 cores&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RAM&lt;/td&gt;
&lt;td&gt;minimum &lt;strong&gt;4 GiB&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Disk&lt;/td&gt;
&lt;td&gt;minimum &lt;strong&gt;20 GiB&lt;/strong&gt; free on the filesystem holding &lt;code&gt;/opt&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network&lt;/td&gt;
&lt;td&gt;HTTPS access to &lt;code&gt;package.think-link.net&lt;/code&gt; for online install; the offline target needs no internet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Explicitly unsupported&lt;/td&gt;
&lt;td&gt;ARM, ARM64, 32-bit x86&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The two statements disagree on three points: 2 GB or 4 GB of RAM, 64 GB or 20 GB of disk, and — most consequentially — &lt;strong&gt;whether ARM works at all&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Follow statement B.&lt;/strong&gt; Three reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Statement B comes from the deployment manual itself and is what the installer actually checks against; failing it terminates the install. Statement A is a summary line in a comparison table.&lt;/li&gt;
&lt;li&gt;Statement B is the stricter constraint. Seven containers run concurrently — EMQX, the NS bridge, PostgreSQL, Redis, ThinkLink, ThinkOne and MinIO. Two gigabytes leaves no headroom at that scale.&lt;/li&gt;
&lt;li&gt;Statement B explicitly lists ARM, ARM64 and 32-bit x86 as unsupported, and separately notes the restriction applies to both the one-line online install and the scripted offline install. Wording that specific usually comes from having tried it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;This constraint collides head-on with domestic-CPU mandates.&lt;/strong&gt; Chinese CPUs split into two camps:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Camp&lt;/th&gt;
&lt;th&gt;Representative parts&lt;/th&gt;
&lt;th&gt;Works with TKE?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;x86&lt;/td&gt;
&lt;td&gt;Zhaoxin KX-6000/KX-7000, Hygon 3000/5000 series&lt;/td&gt;
&lt;td&gt;Yes — architecture is compatible&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ARM&lt;/td&gt;
&lt;td&gt;Phytium FT-2000/4 and D2000, Kunpeng 920, Rockchip RK3568/RK3588&lt;/td&gt;
&lt;td&gt;No — incompatible&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a localisation mandate lands on the ARM camp, TKE should be ruled out during selection, not after the machine arrives and &lt;code&gt;uname -m&lt;/code&gt; prints &lt;code&gt;aarch64&lt;/code&gt;. The x86 camp works directly — Hygon 3350 (8 cores / 16 threads at 3.0 GHz) is x86_64.&lt;/p&gt;

&lt;p&gt;Indicative pricing collected from public channels in October 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Configuration&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Indicative price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;4U rackmount, i5-6500U / 8 GB / 1 TB&lt;/td&gt;
&lt;td&gt;Proof of concept (2 cores, sitting exactly on the minimum)&lt;/td&gt;
&lt;td&gt;~$477 (¥3,200)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Industrial PC, Hygon 3350 (8C/16T) / 16 GB / 1 TB SSD&lt;/td&gt;
&lt;td&gt;Recommended for production&lt;/td&gt;
&lt;td&gt;~$1,550–1,700 (¥10,400–11,400)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same, with domestic OS licence&lt;/td&gt;
&lt;td&gt;Localisation-mandate projects&lt;/td&gt;
&lt;td&gt;~$1,950 (¥13,100)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first tier is a POC machine only. The i5-6500U is two cores / four threads, exactly the stated minimum; CPU becomes the bottleneck before the disk does.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. The Disk Calculation: 20 GiB Is the Entry Ticket, Not the Plan
&lt;/h2&gt;

&lt;p&gt;The 20 GiB check is the installer's admission gate. Real consumption comes from three sources.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Seven container images.&lt;/strong&gt; The offline bundle accepted on 2026-09-11 for version &lt;code&gt;2.00.062&lt;/code&gt; is about &lt;strong&gt;2.45 GB&lt;/strong&gt;, holding the application archive, the Compose file and seven image archives — nine files total. Later versions will differ.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Database growth.&lt;/strong&gt; At 1,000 devices reporting every 10 minutes, that is 144,000 rows a day. At roughly 1 KB per row including indexes, about 144 MB/day, or ~52 GB a year. Add PostgreSQL WAL, index bloat and history-query overhead and the usual practice is to provision two to three times that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MinIO object storage.&lt;/strong&gt; Reports and images live in the Docker named volume &lt;code&gt;minio_data&lt;/code&gt;. This swings wildly depending on whether the business generates reports and how often.&lt;/p&gt;

&lt;p&gt;Sum them and 20 GiB covers a few months. &lt;strong&gt;Go to a 1 TB SSD for production.&lt;/strong&gt; The price delta sits in the table above and is trivial against total project value; the alternative is an online capacity expansion in year two.&lt;/p&gt;

&lt;p&gt;One detail that is easy to miss: &lt;strong&gt;object files live in a Docker named volume, so routine backups must cover that volume; backing up the &lt;code&gt;/opt&lt;/code&gt; directory alone does not substitute for object data.&lt;/strong&gt; A backup script that only walks a directory path will silently lose every report file.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Port Planning: "Not Leaving the Plant" Is Not the Same as "Not on a Network"
&lt;/h2&gt;

&lt;p&gt;This is the section worth reading twice. On-premises deployment solves data residency. A default install then opens a full set of ports on the host, and a meaningful share of them are cleartext.&lt;/p&gt;

&lt;p&gt;Complete the HTTP install first, then configure HTTPS with tkl-tls 2.0.0 — that is the documented order. Host inbound ports:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Port&lt;/th&gt;
&lt;th&gt;Protocol&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;80 (or 8080)&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;ThinkLink web / API over HTTP&lt;/td&gt;
&lt;td&gt;Original entry; if 80 is taken the installer interactively offers 8080; retained after TLS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;443&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;ThinkLink web / API over HTTPS&lt;/td&gt;
&lt;td&gt;Enabled once tkl-tls 2.0.0 configures the in-container Nginx&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1700&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;UDP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;LoRaWAN GWMP gateway uplink&lt;/td&gt;
&lt;td&gt;Open per gateway access needs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1883&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;Device MQTT (cleartext)&lt;/td&gt;
&lt;td&gt;Open per device access needs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;8883&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;Device MQTTS&lt;/td&gt;
&lt;td&gt;Not published by default; configure and verify separately in EMQX&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8083&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;MQTT over WebSocket&lt;/td&gt;
&lt;td&gt;Open per client needs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;8084&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;MQTT over WSS&lt;/td&gt;
&lt;td&gt;Path &lt;code&gt;/mqtt&lt;/code&gt;; requires its own certificate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;18083&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;EMQX dashboard over HTTP&lt;/td&gt;
&lt;td&gt;Retained; not automatically upgraded to HTTPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;18084&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;EMQX dashboard over HTTPS&lt;/td&gt;
&lt;td&gt;Enabled by tkl-tls 2.0.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9000&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;MinIO S3 API&lt;/td&gt;
&lt;td&gt;Restrict source addresses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9001&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;MinIO console&lt;/td&gt;
&lt;td&gt;Trusted administrator networks only&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Details that belong in the plan:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Port conflicts are handled inconsistently.&lt;/strong&gt; If 80 is taken, the installer asks whether to use 8080 and leaves the occupying service alone. But if &lt;strong&gt;9000 or 9001 is taken, the installer stops outright&lt;/strong&gt; and will not pick an alternative. A target machine already running another storage service will stall mid-install.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5432 and 6379 never need to be exposed.&lt;/strong&gt; PostgreSQL and Redis ports are container-internal only.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Management HTTPS is not device MQTTS.&lt;/strong&gt; tkl-tls produces 443 and 18084. Device-side 8883 and 8084 are unpublished by default and need certificates uploaded in EMQX, mappings opened and connectivity verified. &lt;strong&gt;Replacing the certificate in the management UI does not replace device listener certificates&lt;/strong&gt; — those are two separate configurations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An open port is not an enabled TLS listener.&lt;/strong&gt; Worth copying the manual's reminder straight into the acceptance sheet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The EMQX console at 18083 stays HTTP.&lt;/strong&gt; The HTTPS console is 18084; the old entry is retained. Locking down 18083 while forgetting 18084 accomplishes nothing.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. On-Premises Deployment ≠ Regulatory Compliance
&lt;/h2&gt;

&lt;p&gt;This is the most common misreading of "data must not leave the plant."&lt;/p&gt;

&lt;p&gt;Moving the platform inside the plant addresses &lt;strong&gt;storage location&lt;/strong&gt;. The path from sensor to platform is still network transmission, still subject to whatever the applicable rules require of transmission.&lt;/p&gt;

&lt;p&gt;China's &lt;em&gt;Interim Measures for Data Security Management in the Industry and Information Technology Sector&lt;/em&gt; (MIIT Network Security Circular No. 166, issued 2022-12-08, effective 2023-01-01) classifies sector data into three tiers — general, important and core — and states in Article 17:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Data processors shall formulate security policies and adopt protective measures based on the type, level and application scenario of transmitted data. When transmitting important data or core data, they shall adopt verification technology, cryptographic technology, secure transmission channels or secure transmission protocols.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Read that against the port table above. Under a default install, device MQTT runs cleartext on 1883, HTTP runs on 80, and MinIO's S3 API on 9000. If this system carries data classified as important, &lt;strong&gt;on-premises deployment alone does not satisfy Article 17&lt;/strong&gt; — the transmission channels have to be closed as well, meaning web/API on 443 and device MQTT on 8883.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;Network Data Security Regulations&lt;/em&gt; (State Council Decree No. 790, published 2024-09-24, effective 2025-01-01, nine chapters and 64 articles) establishes the classification-and-grading regime one level up, with a dedicated chapter on important data.&lt;/p&gt;

&lt;p&gt;Two further clauses land on concrete operations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Article 15:&lt;/strong&gt; storing important and core data requires secure storage using verification and cryptographic technologies, plus &lt;strong&gt;data disaster-recovery backup&lt;/strong&gt; and &lt;strong&gt;storage-media security management&lt;/strong&gt;, with &lt;strong&gt;periodic data recovery testing&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Article 25:&lt;/strong&gt; processors must log data processing, permission management and operator actions, retaining logs for &lt;strong&gt;no less than six months&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For European readers the pressure arrives from a different direction. The EU Data Act's design obligation for data access (Article 3(1)) took effect on 2026-09-12, with cloud switching charges falling to zero on 2027-01-12. Different instrument, same structural conclusion: the ability to move a deployment — including moving it onto your own hardware — is becoming a compliance matter, not an architecture preference.&lt;/p&gt;

&lt;p&gt;The three clauses together form a chain: &lt;strong&gt;local deployment is step one, TLS is step two, backup and log retention are step three.&lt;/strong&gt; Declaring compliance after step one is what gets caught in an audit.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Two Install Paths: Online One-Liner and Scripted Offline
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Online
&lt;/h3&gt;

&lt;p&gt;On a connected server, no arguments needed:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;curl --tlsv1.2 --tls-max 1.2 -fsSL &lt;a href="https://package.think-link.net/install.sh" rel="noopener noreferrer"&gt;https://package.think-link.net/install.sh&lt;/a&gt; | sudo bash&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The installer: detects OS, CPU, RAM, disk and ports → installs Docker on supported systems (reusing any working Docker) → downloads the application archive, the Compose file and seven image archives (nine files) → installs to the target directory, loads images and starts Compose → checks ThinkLink HTTP, MinIO readiness and bucket initialisation → records version and access information.&lt;/p&gt;

&lt;p&gt;MinIO creates a private bucket named &lt;code&gt;thinklink&lt;/code&gt; on first start.&lt;/p&gt;

&lt;h3&gt;
  
  
  Scripted offline
&lt;/h3&gt;

&lt;p&gt;The documentation summarises it as "download online → transfer and verify → install offline."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step one, on a connected machine.&lt;/strong&gt; The download mode must run from a local script file, never through &lt;code&gt;curl | bash&lt;/code&gt;, because the bundle has to carry the same complete installer:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;curl --fail --silent --show-error --proto '=https' \&lt;br&gt;
  --tlsv1.2 --tls-max 1.2 --connect-timeout 10 --max-time 60 \&lt;br&gt;
  &lt;a href="https://package.think-link.net/install.sh" rel="noopener noreferrer"&gt;https://package.think-link.net/install.sh&lt;/a&gt; -o thinklink-install.sh&lt;/p&gt;

&lt;p&gt;bash thinklink-install.sh --help&lt;br&gt;
bash thinklink-install.sh --download-only ./thinklink-offline&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Run &lt;code&gt;--help&lt;/code&gt; first and confirm it lists &lt;code&gt;--download-only&lt;/code&gt;, &lt;code&gt;--verify-only&lt;/code&gt; and &lt;code&gt;--offline&lt;/code&gt;. The target directory must not yet exist and its parent must; &lt;strong&gt;do not &lt;code&gt;mkdir&lt;/code&gt; it beforehand&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The delivered directory holds 13 checksummed files:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;application.tar&lt;/td&gt;
&lt;td&gt;Application archive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;docker-compose.yml&lt;/td&gt;
&lt;td&gt;Compose definition&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tkl-emqx.tar / tkl-nsbrg.tar / tkl-postgres.tar&lt;/td&gt;
&lt;td&gt;EMQX, NS bridge, PostgreSQL images&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tkl-redis.tar / tkl-thinklink.tar / tkl-thinkone.tar&lt;/td&gt;
&lt;td&gt;Redis, ThinkLink, ThinkOne images&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tkl-minio.tar&lt;/td&gt;
&lt;td&gt;MinIO image&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;install.sh / install-offline.sh&lt;/td&gt;
&lt;td&gt;Installer scripts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;release.json&lt;/td&gt;
&lt;td&gt;Release id, version, channel, architecture&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SHA256SUMS&lt;/td&gt;
&lt;td&gt;Covers 9 artifacts, 2 scripts, the version record and the readme&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;README.txt&lt;/td&gt;
&lt;td&gt;In-bundle notes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Step two, transfer and verify.&lt;/strong&gt; Move the directory intact — it is created with mode 0700 and should stay read-restricted afterwards. On the target:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;cd thinklink-offline&lt;br&gt;
bash install.sh --verify-only .&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This mode needs no root, no Docker and makes no network requests. It checks file integrity, manifest paths and version format, and only proceeds if all pass. &lt;strong&gt;SHA-256 verifies transfer integrity; it is not a publisher signature and does not independently prove provenance&lt;/strong&gt; — a candid note in the manual, and a reminder that supply-chain trust still rests on the delivery channel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step three, install.&lt;/strong&gt; Run &lt;code&gt;sudo bash install-offline.sh&lt;/code&gt; in the bundle directory, adding &lt;code&gt;--yes&lt;/code&gt; for unattended runs (it skips only the final confirmation prompt, not verification or port checks).&lt;/p&gt;

&lt;p&gt;The offline target must already have Docker Engine and Docker Compose V2, because &lt;strong&gt;the bundle does not include Docker or OS dependencies&lt;/strong&gt;. Check first:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;uname -m&lt;br&gt;
sudo docker version&lt;br&gt;
sudo docker compose version&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;uname -m&lt;/code&gt; must print &lt;code&gt;x86_64&lt;/code&gt;. Anything else: stop.&lt;/p&gt;

&lt;h3&gt;
  
  
  Three limits of the offline path
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;New installations only — no automatic upgrade, no rollback on failure.&lt;/strong&gt; If it detects an existing install or leftover data, it leaves the scene intact for you to investigate rather than cleaning up and retrying. Upgrades need new artifacts, a backup and a version-matched upgrade plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not mix download batches.&lt;/strong&gt; The package service checks upstream at 00:00 Beijing time daily and updates artifacts. Mixing batches produces &lt;code&gt;OFFLINE_IMAGES_MISSING&lt;/code&gt; — Compose and images out of sync.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No resumable downloads across processes.&lt;/strong&gt; A failure means re-downloading the whole 2.45 GB. On an expired URL or single-file failure, the script refreshes the address within the same session and retries once.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  7. The One Red Line When Running Alongside Cloud
&lt;/h2&gt;

&lt;p&gt;Most projects pass through a transition period with a foot in both camps — legacy devices in the cloud, new devices on-premises, both live.&lt;/p&gt;

&lt;p&gt;The documentation is unambiguous:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Do not enable the same LoRaWAN device profile on two platforms at once. If TKE and the cloud platform both respond to Join or Confirm messages, join failures and downlink conflicts can result. When switching platforms, disable or delete the profile on the one you are not using.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is a functional constraint, not a performance tip. A Join Request is forwarded to every NS registered for that DevEUI. Both answer with a Join Accept; the device accepts one, but the other NS now believes the device joined and holds frame counters — subsequent downlinks go to the wrong path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;During transition, the profile is enabled on exactly one side. Not "both on, whoever answers first."&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Cloud → Edge Migration: Three Traps in the Excel Import/Export
&lt;/h2&gt;

&lt;p&gt;ThinkLink moves bulk data through Excel across six module types: device configurations, LoRaWAN profiles, thing models, RPC commands, linkage/trigger models and device templates. The workflow is identical on Cloud, TKE and TKG — &lt;strong&gt;the only difference being that TKE/TKG have their own local admin account, unrelated to the cloud one.&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the cloud, open the target module (e.g. LoRaWAN Profiles)&lt;/li&gt;
&lt;li&gt;Select the entries to sync (none selected = export all)&lt;/li&gt;
&lt;li&gt;Click Export and download the generated spreadsheet&lt;/li&gt;
&lt;li&gt;Repeat 2–3 for each data type (thing models, RPC commands, …)&lt;/li&gt;
&lt;li&gt;Switch to TKE and open the matching module&lt;/li&gt;
&lt;li&gt;Click Import and choose the spreadsheet&lt;/li&gt;
&lt;li&gt;Confirm the import completed without errors&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Importing public models requires logging in as admin&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Three traps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trap one: DevEUI is globally unique, so cross-organisation migration is delete-then-import.&lt;/strong&gt; A given DevEUI belongs to one organisation within a platform. Moving a profile from organisation A to B requires deleting it in A first; otherwise the import fails outright.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Data type&lt;/th&gt;
&lt;th&gt;Delete first?&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;LoRaWAN Profiles&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;DevEUI is globally unique&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thing models / RPC commands / device templates&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Same ID means overwrite; not uniqueness-constrained&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Trap two: a matching ID means full overwrite, and it cannot be rolled back.&lt;/strong&gt; The rule is "create if the ID is absent, overwrite completely if present." That is a replacement, not a merge. Stale field values in the spreadsheet will overwrite live configuration on the target.&lt;/p&gt;

&lt;p&gt;There is exactly one mitigation: &lt;strong&gt;export first, before importing, and keep that spreadsheet as the backup.&lt;/strong&gt; Validate format on a small batch before the first large import.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trap three: there is no undo.&lt;/strong&gt; With a backup, re-import it. Without one, rebuild the configuration by hand. Review the ID column row by row so the file contains only what you intend to create or update.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Backups: Three Layers That Do Not Substitute for One Another
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Configuration and install record&lt;/td&gt;
&lt;td&gt;Install directory under &lt;code&gt;/opt&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;File-level backup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;PostgreSQL container volume&lt;/td&gt;
&lt;td&gt;Volume snapshot or logical dump&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Object files&lt;/td&gt;
&lt;td&gt;Docker named volume &lt;code&gt;minio_data&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Volume-level backup&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Backing up &lt;code&gt;/opt&lt;/code&gt; alone does not substitute for object data.&lt;/strong&gt; A container restart preserves existing buckets and objects; host disk failure does not.&lt;/p&gt;

&lt;p&gt;Article 15 of Circular 166 requires disaster-recovery backup &lt;em&gt;and&lt;/em&gt; periodic recovery testing. Note the second half — &lt;strong&gt;a backup that has never been restored is a hypothesis.&lt;/strong&gt; One way to exercise the whole chain during acceptance is generating and downloading a report:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo docker compose -f  exec -T minio /thinklink-minio check-ready&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That command checks whether the image's built-in initialisation completed; pair it with a container status check.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. Error Codes Worth Recognising
&lt;/h2&gt;

&lt;p&gt;The manual lists the full set. These are the ones that surface during deployment:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Message&lt;/th&gt;
&lt;th&gt;Meaning and handling&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;OFFLINE_OUTPUT_EXISTS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Download directory already exists — pick one that does not; do not overwrite the old bundle&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SCRIPT_FILE_REQUIRED&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Download mode must run from a local script file, not `curl \&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;{% raw %}&lt;code&gt;ARTIFACT_DOWNLOAD_FAILED&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Check network and disk space, re-download the whole set&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DOWNLOAD_REFRESH_INVALID&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Version or artifacts changed while refreshing — re-download the full bundle&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;OFFLINE_BUNDLE_INVALID&lt;/code&gt; / &lt;code&gt;OFFLINE_CHECKSUM_FAILED&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Re-transfer the complete directory; &lt;strong&gt;do not edit the manifest to bypass&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;OFFLINE_DOCKER_REQUIRED&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Install offline dependencies, start Docker, verify Compose V2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;OFFLINE_EXISTING_INSTALL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Existing install or data present — prepare a backup and upgrade plan first&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;PORT_IN_USE&lt;/code&gt; / &lt;code&gt;ALTERNATE_PORT_IN_USE&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Resolve the conflict, arrange a usable port, retry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;OFFLINE_IMAGES_MISSING&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Compose and images out of sync — supply a matching full bundle&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;HEALTH_CHECK_FAILED&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Check container status and logs; preserve install data while investigating&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two for day-to-day work:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo docker compose -f  ps&lt;br&gt;
sudo docker compose -f  logs &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Check logs for connection strings and credentials before sharing them externally — a reminder the manual makes on its own.&lt;/p&gt;




&lt;h2&gt;
  
  
  11. Acceptance Checklist
&lt;/h2&gt;

&lt;p&gt;In the order of this article, a TKE deployment ready to hand over:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Pass criterion&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;uname -m&lt;/code&gt; prints &lt;code&gt;x86_64&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Non-x64 fails outright&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;CPU ≥ 2 cores, RAM ≥ 4 GiB, &lt;code&gt;/opt&lt;/code&gt; ≥ 20 GiB&lt;/td&gt;
&lt;td&gt;Production: 8 cores / 16 GB / 1 TB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Pre-flight port check on 80/8080, 9000, 9001, 1700, 1883&lt;/td&gt;
&lt;td&gt;A 9000/9001 conflict aborts the install&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;All seven containers running&lt;/td&gt;
&lt;td&gt;&lt;code&gt;docker compose ps&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Private MinIO bucket ready, anonymous access refused&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;check-ready&lt;/code&gt; plus an anonymous access attempt&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Web/API on HTTPS 443, EMQX console on 18084&lt;/td&gt;
&lt;td&gt;tkl-tls 2.0.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Device MQTT on 8883 (where required)&lt;/td&gt;
&lt;td&gt;Configured and verified separately in EMQX&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;MinIO 9000/9001 reachable only from trusted networks&lt;/td&gt;
&lt;td&gt;Firewall rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;No device profile enabled on both cloud and TKE&lt;/td&gt;
&lt;td&gt;Profile inventory cross-check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;Export taken before import&lt;/td&gt;
&lt;td&gt;Backup file retained&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;Backup scope covers the &lt;code&gt;minio_data&lt;/code&gt; volume&lt;/td&gt;
&lt;td&gt;Backup script review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;One recovery test completed&lt;/td&gt;
&lt;td&gt;Recovery drill record&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;Default passwords changed (ThinkLink / EMQX / MinIO)&lt;/td&gt;
&lt;td&gt;Business client configs updated to match&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;Full offline bundle + &lt;code&gt;release.json&lt;/code&gt; + &lt;code&gt;SHA256SUMS&lt;/code&gt; retained&lt;/td&gt;
&lt;td&gt;Version traceability&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Item 5's "anonymous access to the private bucket refused" was explicitly covered in the vendor's own 2026-09-11 acceptance record, and it belongs on your checklist too. A private bucket that is anonymously readable is every report file sitting in an internal share.&lt;/p&gt;




&lt;h2&gt;
  
  
  12. Closing
&lt;/h2&gt;

&lt;p&gt;"Data must not leave the plant" is a requirement about storage location, and it triggers three consequences: you buy the machine, you close the transmission channels, and you run the backups. Only the first of those is a procurement problem.&lt;/p&gt;

&lt;p&gt;Two points this article has argued repeatedly:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;On-premises is not the same as compliant.&lt;/strong&gt; Article 17 of Circular 166 requires secure transmission channels or protocols for important data. A default TKE install runs MQTT in cleartext on 1883 and HTTP on 80. tkl-tls is not an optional hardening step; it is what closes that clause.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Confirm the x64 constraint before the purchase order.&lt;/strong&gt; The vendor's own documentation carries two conflicting statements about TKE's hardware requirements, and they disagree on whether ARM works. Taking the deployment manual as authoritative: it does not. If a localisation mandate has already settled on Phytium or Kunpeng, raise it at proposal stage rather than when &lt;code&gt;uname -m&lt;/code&gt; prints &lt;code&gt;aarch64&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;TKE's value is that it bundles the network server, thing models, trigger logic, alarms and object storage into one Compose command while preserving a migration path to and from both the cloud and the in-gateway form. The price is that someone now owns it. Deciding who, before buying anything, matters more than the spec sheet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next in the series (Issue 24):&lt;/strong&gt; the data is local; now let the rest of the building read it — BACnet/IP and Modbus TCP integration on ThinkLink, from field mapping to commissioning with YABE.&lt;/p&gt;




&lt;h3&gt;
  
  
  Sources
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;ThinkLink documentation, &lt;em&gt;Docker Deployment (TKE)&lt;/em&gt; — install flow updated 2026-09-11, TLS and port notes updated 2026-10-22: &lt;a href="https://www.think-link.net/docs/zh/QuickStart/Deployment/ThinkLinkDocker.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/zh/QuickStart/Deployment/ThinkLinkDocker.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;ThinkLink documentation, &lt;em&gt;ThinkLink (TKL) Introduction&lt;/em&gt;: &lt;a href="https://www.think-link.net/docs/zh/QuickStart/ThinkLinkIntroduction.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/zh/QuickStart/ThinkLinkIntroduction.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;ThinkLink documentation, &lt;em&gt;Batch Data Management Guide&lt;/em&gt;: &lt;a href="https://www.think-link.net/docs/zh/AN/BatchDataManagementGuide.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/zh/AN/BatchDataManagementGuide.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;ThinkLink documentation, &lt;em&gt;ThinkLink in Gateway (TKG)&lt;/em&gt;: &lt;a href="https://www.think-link.net/docs/zh/QuickStart/Deployment/ThinkLinkGateway.html" rel="noopener noreferrer"&gt;https://www.think-link.net/docs/zh/QuickStart/Deployment/ThinkLinkGateway.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;MIIT, &lt;em&gt;Interim Measures for Data Security Management in the Industry and Information Technology Sector&lt;/em&gt;, Network Security Circular No. 166, effective 2023-01-01&lt;/li&gt;
&lt;li&gt;State Council, &lt;em&gt;Network Data Security Regulations&lt;/em&gt;, Decree No. 790, effective 2025-01-01&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>infrastructure</category>
      <category>iot</category>
    </item>
  </channel>
</rss>
