IT Essentials

The Principles Hold, the Defaults Change: Engineering Where Software Meets Hardware

Drawing on Martin Fowler's account of modernizing a battery-powered sensor fleet, this piece distills how engineering principles survive at the software–hardware boundary while the sensible defaults behind them shift.

Where the problem begins: hundreds of thousands of battery-powered sensors

In an article published on martinfowler.com, Kuldeep Singh describes modernizing an IoT system of roughly 800,000 battery-powered sensors across 3,000 retail stores. With the existing connectivity technology nearing end of life, the team had to move to a newer network without replacing already-installed devices while also onboarding newer stores with next-generation devices.

The article’s core point is not a specific technology but an observation: the principles of software engineering—fast feedback, automation, testing, observability, safe deployment—hold in hardware contexts, but the way those principles are practiced, the ‘sensible defaults,’ must change under physical constraints.

Defaults that had to change

The defaults Singh’s team arrived at include the following.

  • Experimentation environments over documentation: Organizational changes had left gaps in knowledge of the existing firmware, hardware, and network architecture. Rather than rely on documents—some of which described behavior they couldn’t reproduce—the team built an IoT lab with physical sensors, wire harnesses, and learning kits, learning by building and measuring.
  • The physical world as part of the development lifecycle: A ‘sensor farm’—real devices connected to the new network with monitoring—became part of the development environment. Radio conditions and power became test conditions, with practices like TDD applied with hardware in the loop.
  • Devices that explain themselves: A device in the field cannot have a debugger attached. The firmware was given diagnostic capabilities—running firmware version, last communication time, network state, upgrade status—exposed both locally and through remote APIs. Singh notes that for hundreds of thousands of devices, this is not optional.
  • Simulating what is expensive to reproduce physically: At larger stores, the new network hardware could support far fewer devices than lab experiments suggested. The team built a virtual device emulator running the same firmware to simulate large stores—while emphasizing this did not replace physical testing.
  • Designing for disconnection, not just connection: A connection attempt is the heaviest operation for the device. Sleep and reconnection were treated as normal operating conditions rather than exceptional failures.
  • Energy as a software design concern: Communication frequency and computation determine device lifespan. In some cases the team chose to reboot devices every 24 hours rather than aggressively reclaim memory—a choice that would look unreasonable on a server.
  • Deployment and recovery designed together: Unlike cloud applications, failed firmware updates brick devices in the field, and battery spent downloading can’t be rolled back. Secure downloads, validation, partition swapping, resumable upgrade state, and staged rollouts became part of the deployment mechanism itself.
  • Fleet-level observability: Individual device health checks are insufficient at scale. Dashboards and analytics surfaced communication failures and unusual behavior across the fleet, distinguishing isolated problems from fleet-wide ones.

Why it matters

The article’s deeper point goes beyond IoT. Engineering practices are not timeless truths but defaults acquired by encountering problems in a specific environment. Singh is explicit that these defaults were not invented from first principles but earned through failure and experiment, and that the environment tells you where your assumptions are wrong.

For teams of pure-software engineers moving into embedded systems or large physical fleets, the article shows concretely which questions must be asked anew: Can we trust this firmware update? Can we recover if something goes wrong? His observation that AI was used to shorten the learning loop rather than just the coding loop is also a useful data point for software teams.

What remains open

The piece is grounded in one organization’s experience with a massive retail fleet. As Singh himself notes, he is not proposing a new methodology—so how these defaults generalize across industries, and where this perspective genuinely pays off for teams without physical fleets, is left for readers to assess.

Sources

Drafted by AI from the original sources and reviewed by an editor before publishing. Check the sources for the authoritative details.

#software architecture #IoT #engineering practice #firmware #observability

← IT essentials