Wireless Software Development

Define Wireless Success Metrics Before You Scope the Build

A wireless feature is not working merely because devices connect in a demo. For a product manager, the harder question is whether ordinary devices can connect, recover, and stay useful under conditions the launch plan can afford. I would make that question a release gate rather than a post-launch dashboard, because a green demo can conceal work that will otherwise land in the next sprint.

First-connection success is meaningless without an eligible cohort

Define the unit of measurement before asking engineering for a success rate. For onboarding, use a connection attempt that begins when a device receives usable credentials and is instructed to connect. Give it a server-generated attempt ID. End it at a specified event, such as the first authenticated MQTT 5.0 publish acknowledged by the broker. A radio association or a successful TCP handshake is too early an endpoint if the feature needs application data, because either can succeed while authentication or publishing fails.

Specify who enters the denominator. Include attempts that never produce an online event; otherwise the quietest failures disappear from the calculation. Exclude a device only for a documented reason known before its result, such as a unit assigned to a destructive lab test. Record retries against the original attempt ID, because counting every retry as a fresh opportunity can make a struggling device look like several successes. Report both first-attempt success and eventual success: the gap between them is evidence of friction, even when every device ultimately connects.

Segment the cohort by facts that could change the outcome: firmware version, hardware revision, carrier, installation site, and provisioning method. Do not create a separate launch target for every possible combination; sparse groups produce unstable percentages. Instead, choose the few boundaries that correspond to different work owners. A firmware-specific failure points toward an update; a carrier-specific failure may require a connectivity or contract decision. Keep the raw counts beside every percentage so a result based on a handful of attempts cannot pass as a stable trend.

For illustration, suppose a pilot records 92 first connections from 100 eligible attempts. Those are observed outcomes in this worked example, not a forecast for another fleet. The headline rate is 92%, but it says little until the team accounts for the eight misses and checks whether one site supplied most of the successes. A scope-trap inventory such as Seven wireless scope traps that blow PM budgets and schedules helps generate questions; I would not treat the inventory itself as proof that scope is controlled, because only cohort results show which risks are consuming time.

A useful dashboard measures recovery, not just uptime

“Online devices” is a weak primary metric because an intermittently connected device can appear healthy whenever someone opens the dashboard. Measure the work the connection is supposed to complete. If the product needs a status report every hour, count reports delivered by their deadline, with the expected reports—not merely the received reports—in the denominator. If it needs commands, measure time from command acceptance to device acknowledgement and separately count commands that expire. MQTT QoS 1 means at-least-once delivery, so an acknowledgement does not by itself prove that an application command was applied exactly once; use a command ID and record the device’s applied result.

Measure recovery as an event with a beginning and an end. Start a recovery timer at the last expected report or at a detected session loss, then stop it at the first useful application message after reconnection. Publish a median and a high percentile alongside the fraction that never recovered within the observation window. A percentile calculated only from recovered devices hides permanent failures. Store timestamps in RFC 3339 form with UTC offsets and use a server-side clock for receipt times, because device clocks can be wrong after a power loss.

The first instrumentation slice need not be elaborate. A PostgreSQL 16 table can hold attempt IDs and outcomes; Prometheus 3.x and Grafana can display aggregate rates; OpenTelemetry Collector can move structured events into the team’s existing pipeline. Keep the event schema smaller than the dashboard: attempt_started, broker_authenticated, first_publish_accepted, report_due, and report_received are enough to answer several launch questions. For packet-level disputes, a short Wireshark capture is more useful than adding another chart, because it can distinguish a network retry from an application retry.

Here is a small Python 3 check for a CSV exported with one row per attempt and columns named eligible and online_s. An empty online_s means no online event. The 900-second window is an initial threshold to tune to the product’s actual onboarding promise, not a universal wireless target.

import csv, sys
rows = list(csv.DictReader(sys.stdin))
eligible = [r for r in rows if r["eligible"] == "1"]
if not eligible:
    raise SystemExit("no eligible attempts")
times = [int(r["online_s"]) for r in eligible if r["online_s"]]
within = sum(t <= 900 for t in times)
print(f"attempts={len(eligible)}")
print(f"online_15m={within / len(eligible):.1%}")
print(f"no_online_event={1 - len(times) / len(eligible):.1%}")

Run it with python3 check.py < attempts.csv. Its value is the explicit denominator, not sophisticated statistics. Before using its output as a gate, verify that the export includes attempts from devices that stopped reporting entirely.

Test conditions should resemble the failure you would pay to fix

A clean bench test answers whether the implementation can work. It does not answer whether the release is ready, because signal loss, delayed DNS, credential rotation, and power interruption change the paths the software takes. Write test conditions from plausible deployment events, then tie each condition to a customer-visible outcome. For example, after a forced outage, ask whether a device resumes reports without a manual credential reset. Record the number of interventions as well as elapsed recovery time; an automatic recovery and a technician-assisted recovery are different product outcomes.

Use tc netem to introduce delay and packet loss on a Linux test link, and inspect traffic with tcpdump when the result is disputed. These tools do not reproduce every LTE-M or NB-IoT radio behavior, because a cellular modem and carrier network add states that IP-level impairment cannot simulate. Use actual modems and the intended carrier for the release gate, while retaining netem for repeatable regression tests. If the product supports both Wi-Fi and cellular fallback, test the transition itself; two successful standalone connection tests do not establish that fallback preserves queued work.

Compare a scripted lab run with a limited field cohort rather than asking which one is “realistic.” The scripted run wins when engineering must reproduce a firmware regression quickly; it costs fixture maintenance and can miss site-specific conditions. The field cohort wins when the decision concerns installation variability or carrier behavior; it costs calendar time, devices, and support attention, and its failures can be harder to reproduce. Fund both only when they answer different release questions. Repeating a broad field trial to compensate for missing event IDs is an expensive substitute for instrumentation.

For the field cohort, a 30-day observation period is a proposed planning window to adjust around the product’s reporting frequency and expected outage cycle. Decide in advance which failures block expansion, which trigger a documented workaround, and which merely warrant investigation. Otherwise a team can reinterpret an inconvenient result after seeing it. A device that misses one scheduled report and self-recovers may be acceptable for one promise; the same event may violate another. The acceptance rule must come from the promise, not from whichever graph looks best.

A release gate should price unresolved failure, not demand perfect charts

The PM’s decision is not “Is connectivity good?” It is “Can we release this cohort without committing to unplanned recovery work?” Put a costed owner beside each unresolved failure mode. For a failed onboarding attempt, estimate whether resolution needs a remote configuration change, a customer call, or a physical visit. For an intermittent device, establish whether queued data survives and whether support can diagnose the issue from recorded events. The same failure rate can imply very different scope when one case self-recovers and another consumes a technician’s day.

Connectivity mistakes are often framed as choices to avoid. IoT Connectivity Mistakes That Blow Up Your Roadmap Cost is a useful countercheck for an estimate, but I would still gate a release on observed recovery and intervention costs, because a sound architecture can have an unreliable implementation. Track engineering hours spent investigating each distinct failure, too: a low incident count is not cheap if every incident takes several days to identify.

Separate a stop condition from a watch condition. A stop condition could be missing events that prevent the team from calculating the eligible denominator; shipping without that denominator makes the next rollout impossible to judge. Another could be a repeatable credential-rotation failure that requires manual re-provisioning. A watch condition might be a slower-than-target recovery whose cause is known and whose customer effect is bounded. Write the conditions before the field run and attach a named decision owner, because an ownerless threshold is likely to become a debate on launch day.

Do not copy a vendor ceiling into the success criteria. AWS IoT Core, for example, publishes a 128 KB MQTT message payload limit; that is a service constraint, not evidence that a device delivers its reports on time. Likewise, broker connection counts do not establish application success. Standards and service limits belong in design checks, while release metrics belong to observed attempts, completed work, recovery, and human intervention. Keeping those categories separate prevents a technically valid configuration from masquerading as a usable product.

Start with the event that can disappear

Before approving the next wireless milestone, ask engineering to trace one eligible connection attempt that never produced an online event. Confirm when the attempt began, which events should have followed, and whether the exported cohort still contains it. If that missing device is absent from the denominator, fix the measurement first. A rollout gate cannot protect the schedule when its failures are invisible.