Free e-book: IEEE 802.15.4ab vs IEEE 802.15.4z
Free e-book: IEEE 802.15.4ab

From end-of-life to market-ready: rebuilding a 400,000-unit safety product as a Certification-Ready BLE IoT System

A two-decade-old stove-guard safety device – proprietary RF, assembler firmware, no mobile interface – rebuilt on bare-metal Nordic silicon as a modern, BLE-connected, EN 50615-ready system. Same install experience for the user; everything underneath replaced.

case study video frame

Executive Summary

Challenge:

A Nordic safety manufacturer with 400,000+ field installations faced the end of life of its flagship stove-guard product. The legacy architecture could no longer meet user expectations or tightening residential-safety regulation:
  • Proprietary sub-GHz radio; firmware written largely in assembler
  • No mobile app, no remote monitoring, no over-the-air update path
  • Rising EN 50615 certification pressure across target markets

Solution:

needCode rebuilt the product as a modern BLE IoT system: new silicon, new radio protocol, new application architecture, new mobile interface, new certification posture while keeping the device functionally identical for the end user. Framed as a refactor, the scope was effectively a new product generation, delivered end-to-end across firmware and hardware.

Do you need Smart Innovations?

Book a free discovery call and let's unlock new possibilities

Impact at a glance:

+

installed base modernized without forcing users to relearn how to install or operate the device

Battery-life KPI met

a commercial deal-breaker, solved through protocol-level redesign rather than hardware tuning alone

EN 50615 certification-ready

architecture built to pass independent accredited-lab testing across all mounting positions

Full-stack ownership

firmware and custom PCB delivered by one partner, closing a hardware gap on the client side

Zero silent failures

self-test built into the firmware so the device never claims a safety status it cannot guarantee

What we delivered

01

A future-proof firmware architecture
Three explicit layers (drivers → modules → application) that absorb silicon and component changes without touching product logic — so the next part swap doesn't trigger another rebuild.

02

Battery life that meets spec
An advertising-on-demand BLE model that keeps the battery-powered sensor near zero radio energy by default, shifting the cost of being "always listening" onto the mains-powered control unit.

03

A safety classifier validated at scale
The fire-detection algorithm verified against a database of ~1,000 real cooking and fire sequences through simulation replay — reproducible coverage without re-staging dangerous events.

04

Certification-grade safety behavior
Power-on and periodic self-tests plus defined fault states, so a degraded sensor signals failure instead of pretending to work.

"A product with twenty years in the field can't afford a bad rebuild. We took full ownership of both the hardware and the firmware and rebuilt it from the silicon up. Modern, connected, and certification-ready from day one. That's the kind of challenge we exist for."
profile-bartek-kling
Bartek Kling
CEO at needCode
Get a Free Estimate

Background & Challenges

The starting point was a product that already worked. The stove-guard device had been on the market for close to two decades and carried a substantial installed base; the problem was never its function, but the fact that the engineering underneath it belonged to a different era.
The device communicated over a proprietary sub-GHz radio with no realistic path to modern connectivity, and its firmware was written largely in assembler: hard to maintain, and no longer fully understood inside the organisation now that the original engineers had moved on. There was no mobile app, no remote monitoring, and no over-the-air update path, which left the product increasingly out of step with what every other connected appliance in the home now takes for granted. At the same time, regulators across the target markets were tightening the requirements that apply to active residential safety devices, steadily raising the bar the product would have to clear to remain certifiable (EN 50615).
What had been framed as a "refactor" was, in practice, a full new generation: new silicon, a new radio protocol, a new application architecture, a new mobile interface, and a new certification posture. One constraint sat above all of it and shaped every decision below — the device had to remain functionally indistinguishable from the legacy unit in its core safety role, so that no installer and no user would ever have to relearn how to set it up or operate it. Everything beneath that surface was open to change; the surface itself was not.

How we did it

#1 A maintainable firmware foundation

The firmware runs bare-metal, with no RTOS beneath it — a deliberate trade. A kernel would have provided task scheduling and a pre-validated driver library, but it would also have cost the tight control over timing, memory layout, and power consumption that a battery-powered safety device lives or dies by. So every driver and peripheral abstraction was written from scratch against the silicon's low-level register interface, and the codebase was organised into three strictly separated layers. Drivers handle register-level access and nothing else. Modules compose those primitives into reusable, independently testable behaviours: the BLE stack, the IR sensor, the LED, the buzzer, the relay control line. The application layer, the only product-specific code in the system, holds the detection logic, the alarm state machine, the user interface, and the self-test orchestration. The payoff is long-term maintainability: a change at the driver level is absorbed without touching safety logic, and a change in the alarm logic never propagates down into driver code. Those boundaries aren't a convention anyone can quietly bypass; they are enforced by the build system and reviewed at every change.

#2 BLE power optimisation through protocol redesign

Battery life was a primary commercial KPI rather than a finishing touch. Customers don't tolerate frequent battery changes in a ceiling-mounted safety device. The first implementation followed the conventional pattern: the sensor and control unit held a persistent BLE connection and exchanged link-layer keepalives at every connection interval. That is simple and low-latency, but for a device that sends a meaningful payload only occasionally, most of the energy budget ends up spent on maintaining the link rather than on moving data. The redesign turned the asymmetry between the two devices into an advantage. The battery-powered sensor now stays disconnected by default, drawing near-zero radio energy, and starts advertising only when it actually has something to say like a status update, a heartbeat, or an alarm. The mains-powered control unit, which has energy to spare, scans continuously, picks up the advertisement, connects, pulls the message, and drops the link again. Connection intervals, slave latency, supervision timeouts, and advertising parameters were then tuned on top of that base.

#3 A safety algorithm proven against real data

The detection algorithm reads the heatmap from an 8×8 IR thermal array and classifies the scene as idle, normal cooking, or warning/alarm, carrying state across frames so it responds to sustained patterns rather than to a single transient spike. The algorithm itself was specified by the client's domain experts from years of field data on stove-fire behaviour; our work was to implement it in firmware, integrate it cleanly behind the IR module's interface, and validate it. Validation is where the real discipline sits, because staging genuine fire events under controlled conditions is demanding, costly, and not something that can be repeated at will. The scenarios were therefore captured once, in carefully instrumented test runs, and turned into a labelled measurement database — roughly a thousand normal-cooking sequences alongside a smaller set of real fire and warning events. A simulation harness then replays those recordings into the very same module interface the live sensor feeds, and checks each classification against its expected label. From that point on, regression-testing the classifier across hundreds of cases became a routine, automatable activity.

#4 Safety that fails loud, never silent

For a safety device, failing silently is worse than not being there at all: the user trusts that the unit on the ceiling is watching the stove, and a device that has quietly stopped working betrays that trust invisibly. The firmware is built so the guarantee is structural rather than assumed. At boot, a power-on self-test exercises every peripheral the device depends on the IR sensor, the radio, the battery monitor, the user-interface elements and the device enters its monitoring state only if all of them pass; a failure is reported through coded LED and buzzer signals that identify the subsystem at fault. Because the product is expected to run for years between battery changes, a lighter periodic self-test repeats the critical checks every few hours during normal operation, without disturbing the device's monitoring duty. Unrecoverable faults move the device into a defined, externally visible fault state rather than a silent reset or an undefined condition. A heartbeat contract requires the sensor to announce its presence at a fixed interval; if that heartbeat is missed beyond tolerance the control unit disconnects mains power to the stove. Continued operation has to be earned by continuous, verifiable proof that the safety chain is intact.

#5 Authenticated mobile control

The mobile app covers the conventional ground for a connected home device - commissioning, configuration, status, and alerts but the security boundary at the BLE interface is anything but routine for this product category. An arbitrary BLE-capable device in radio range cannot connect to the system, change its parameters, or interfere with its operation; only app instances that have been paired and authenticated are admitted, and everything else is rejected at the protocol layer. The Nordic BLE security stack is combined with a custom application-level authentication procedure, designed explicitly against the threats that matter most for a connected safety device: unauthorised interception, data tampering, and rogue-device impersonation. Data integrity and user safety were treated as primary design constraints from the first line of the protocol, not as features layered on once the product worked.

The value, beyond the build

Strategic value

The biggest return here was continuity: a product line with two decades in the field was carried forward rather than quietly retired. Timing mattered just as much – by owning both firmware and hardware, needCode closed a gap the client couldn't have staffed in time and held the launch on schedule, avoiding the cost and delay of hiring into a specialized, hard-to-find skill set.
  • A 20-year product line carried forward instead of discontinued
  • Launch timeline protected against an unfillable hardware and hiring gap
  • Certification designed in from day one – late-stage work was documentation, not architectural rework

Technical value

The engineering value is what stays behind once the project closes. The architecture was built to survive change – portable across silicon revisions and product variants, so the next component swap doesn't force a rewrite – and the testing discipline keeps that foundation from quietly decaying over time.
  • Architecture portable across silicon revisions and product variants
  • Per-commit automated regression testing that stops the codebase from re-accumulating brittleness
  • Near-complete branch coverage on the critical paths, plus a reusable measurement-replay framework for ongoing algorithm regression
"The real value isn't just a device that works. It's what stays behind: a maintainable architecture, a fully tested codebase, and a certification-ready foundation. That's value the client keeps drawing on long after delivery"
profile-bartek-kling
Bartek Kling
CEO at needCode

Do you need Smart Innovations?

Book a free discovery call and let's unlock new possibilities

Why this matters for similar products

Rebuilding an established product as a modern connected device — new silicon, new wireless stack, contemporary mobile app — is increasingly common, driven by forces that aren't vendor-specific:

01

Legacy radios lose support

02

Certification regimes tighten

03

Mobile-app expectations become non-negotiable

03

The original firmware engineers move on

The device communicated over a proprietary sub-GHz radio with no realistic path to modern connectivity, and its firmware was written largely in assembler: hard to maintain, and no longer fully understood inside the organisation now that the original engineers had moved on. There was no mobile app, no remote monitoring, and no over-the-air update path, which left the product increasingly out of step with what every other connected appliance in the home now takes for granted. At the same time, regulators across the target markets were tightening the requirements that apply to active residential safety devices, steadily raising the bar the product would have to clear to remain certifiable (EN 50615).
The decisions that generalize: a layered firmware split for long-term maintainability; power optimization at the protocol level rather than the peripheral; safety-classifier validation by recorded-data replay; comprehensive POST/PST with explicit fault states; and per-commit regression testing. These aren't exotic techniques – they're what competent embedded teams apply when the cost of getting it wrong is real.

Final Thoughts

This project shows how needCode takes an end-of-life product and delivers a market-ready, certification-grade replacement – owning both firmware and hardware, and building value that outlasts the initial engagement. If you're modernizing a connected or safety-critical product, let's talk.

If you need a partner to drive your next innovation, we’re here to help. Let’s talk and explore how we can bring your vision to life.

#TurnIdeasIntoLife

Also interesting

More case studies

We work with Industry Leaders

Let's work on your next project together

Book a demo and discovery call with our CEO
to get a look at:
Strategic Expertise
End-to-End Solutions
Advanced Technology
Custom Hardware Devices
Bartek Kling
Bartek Kling / CEO
© 2026 needCode. All rights reserved.

Manufacturing

Modern manufacturing machines are typically equipped with IoT sensors that capture performance data. AIoT technology analyzes this sensor data, and based on vibration patterns, the AI predicts the machine's behavior and recommends actions to maintain optimal performance. This approach is highly effective for predictive maintenance, promoting safer working environments, continuous operation, longer equipment lifespan, and less downtime. Additionally, AIoT enhances quality control on production lines.

For example, Sentinel, a monitoring system used in pharmaceutical production by IMA Pharma, employs AI to evaluate sensor data along the production line. The AI detects and improves underperforming components, ensuring efficient machine operation and maintaining high standards in drug manufacturing.

Logistics & supply chain

IoT devices - from fleet vehicles and autonomous warehouse robots to scanners and beacons - generate large amounts of data in this industry. When combined with AI, this data can be leveraged for tracking, analytics, predictive maintenance, autonomous driving, and more, offering greater visibility into logistics operations and enhancing vendor partnerships.

Example: Amazon employs over 750,000 autonomous mobile robots to assist warehouse staff with heavy lifting, delivery, and package handling tasks. Other examples include AI-powered IoT devices such as cameras, RFID sensors, and beacons that help monitor goods' movement and track products within warehouses and during transportation. AI algorithms can also estimate arrival times and forecast delays by analyzing traffic conditions.

Retail

IoT sensors monitor movement and customer flow within a building, while AI algorithms analyze this data to offer insights into traffic patterns and product preferences. This information enhances understanding of customer behavior, helps prevent stockouts, and improves customer analytics to drive sales. Furthermore, AIoT enables retailers to deliver personalized shopping experiences by leveraging geographical data and individual shopping preferences.

For instance, IoT sensors track movement and customer flow, and AI algorithms process this information to reveal insights into traffic patterns and product preferences. This ultimately leads to better customer understanding, stockout prevention, and enhanced sales analytics.

Agriculture

Recent research by Continental reveals that over 27% of surveyed farmers utilize drones for aerial land analysis. These devices capture images of crops as they are and transmit them to a dashboard for further assessment. However, AI can enhance this process even further.

For example, AIoT-powered drones can photograph crops at various growth stages, assess plant health, detect diseases, and recommend optimal harvesting strategies to maximize yield. Additionally, these drones can be employed for targeted crop treatments, irrigation monitoring and management, soil health analysis, and more.

Smart Cities

Smart cities represent another domain where AIoT applications can enhance citizens' well-being, facilitate urban infrastructure planning, and guide future city development. In addition to traffic management, IoT devices equipped with AI can monitor energy consumption patterns, forecast demand fluctuations, and dynamically optimize energy distribution. AI-powered surveillance cameras and sensors can identify suspicious activities, monitor crowd density, and alert authorities to potential security threats in real-time, improving public safety and security.

For example, an AIoT solution has been implemented in Barcelona to manage water and energy sustainably. The city has installed IoT sensors across its water supply system to gather water pressure, flow rate, and quality data. AI algorithms analyze this information to identify leaks and optimize water usage. Similarly, smart grids have been introduced to leverage AI to predict demand and distribute energy efficiently, minimizing waste and emissions. As a result, these initiatives have enabled the city to reduce water waste by 25%, increase renewable energy usage by 17%, and lower greenhouse gas emissions by 19%.

Healthcare

Integrating AI and IoT in healthcare enables hospitals to deliver remote patient care more efficiently while reducing the burden on facilities. Additionally, AI can be used in clinical trials to preprocess data collected from sensors across extensive target and control groups.

For example, intelligent wearable technologies enable doctors to monitor patients remotely. In real-time, sensors collect vital signs such as heart rate, blood pressure, and glucose levels. AI algorithms then analyze this data, assisting doctors in detecting issues early, developing personalized treatment plans, and enhancing patient outcomes.

Smart Homes

The smart home ecosystem encompasses smart thermostats, locks, security cameras, energy management systems, heating, lighting, and entertainment systems. AI algorithms analyze data from these devices to deliver context-specific recommendations tailored to each user. This enables homeowners to use utilities more efficiently, create a personalized living space, and achieve sustainability goals.

For example, LifeSmart offers a comprehensive suite of AI-powered IoT tools for smart homes, connecting new and existing intelligent appliances and allowing customers to manage them via their smartphones. Additionally, they provide an AI builder framework for deploying AI on smart devices, edge gateways, and the cloud, enabling AI algorithms to process data and user behavior autonomously.

Maintenance (Post-Release Support)

When your product is successfully launched and available on the market we provide ongoing support and maintenance services to ensure your product remains competitive and reliable. This includes prompt resolution of any reported issues through bug fixes and updates.

We continuously enhance product features based on user feedback and market insights, optimizing performance and user experience.

Our team monitors product performance metrics to identify areas for improvement and proactively addresses potential issues. This phase aims to sustain product competitiveness, ensure customer satisfaction, and support long-term success in the market.

Commercialization (From MVP to Product

Our software team focuses on completing the full product feature range, enhancing the user interface and experience, and handling all corner cases. We prepare product software across the whole lifecycle by providing all necessary procedures, such as manufacturing support and firmware upgrade.

We also finalize the product's hardware design to ensure robustness, scalability and cost-effectiveness.

This includes rigorous testing procedures to validate product performance, reliability, and security. We manage all necessary certifications and regulatory compliance requirements to ensure the product meets industry standards and legal obligations.

By the end of this phase, your product is fully prepared for mass production and commercial deployment, with all documentation and certifications in place.

Prototyping (From POC to MVP)

Our development team focuses on implementing core product features and use cases to create a functional Minimum Viable Product (MVP). We advance to refining the hardware design, moving from initial concepts to detailed PCB design allowing us to assemble first prototypes. Updated documentation from the Design phase ensures alignment with current project status. A basic test framework is established to conduct preliminary validation tests.

This prepares the product for real-world demonstrations to stakeholders, customers, and potential investors.

This phase is critical for validating market readiness and functionality before proceeding to full-scale production.

Design (From Idea to POC)

We meticulously select the optimal technology stack and hardware components based on your smart product idea with detailed use cases and feature requirements (Market Requirements Document / Business Requirements Document). Our team conducts thorough assessments of costs, performance metrics, power consumption, and resource requirements.

Deliverables include a comprehensive Product Requirements Document (PRD), detailed Software Architecture plans, an Initial Test Plan outlining validation strategies, Regulatory Compliance Analysis to ensure adherence to relevant standards, and a Proof of Concept (POC) prototype implemented on breakout boards.

This phase aims to validate the technical feasibility of your concept and establish a solid foundation for further development.

If you lack a validated idea and MRD/BRD, consider utilizing our IoT Strategic Roadmap service to gain insights into target markets, user needs, and desired functionality. Having a structured plan in the form of an IoT Strategic Roadmap before development begins is crucial to mitigate complications in subsequent product development phases.