The challenge
Ship strong security and real breathing intelligence, on the same
timeline
Somnox builds connected sleep companions that guide people into rest.
The range spans two devices, the full-size Somnox Pro for the bed and the handheld Somnox Go for on the go.
Neither problem could be allowed to delay the other:
- A regulatory deadline. Under the EU Cyber Resilience Act, from
2027 connected devices placed on the European market must implement end-to-end
security. Secure boot and a secure update path had to be designed, built,
and documented, without pushing back the firmware schedule
- Security beyond the firmware. End-to-end means the device, the
mobile app, the cloud backend, and the manufacturing process all had to
hold the same guarantees, with documentation able to satisfy a CRA consultant's
review
- Secure manufacturing at scale. Provisioning cryptographic identity
on a factory floor leaves little room for error and is a common target
for attackers, Somnox needed a flashing process that was secure, cloud-integrated,
and itself CRA-compliant
- Every sleeper breathes differently. Detecting breathing reliably
enough to respond to it, all night, on-device, from motion alone, is
a genuinely hard signal problem. And it had to work across two very different
products
- Insight for every sleeper. Somnox wanted users to see their own breathing, which required breathing data to be captured on the device and streamed reliably to the app for visualisation. That pipeline did not exist.
The work
Five domains, one team
As Somnox's embedded engineering partner, c4micro owned the firmware
stack end to end and worked closely with Somnox's team and their
partners. Each problem maps to a deliberate engineering decision.
- End-to-end security, delivered on schedule: a complete secure boot and secure firmware-update architecture, engineered in parallel with feature work, with device trust rooted in hardware.
- Security across the whole chain, direct collaboration with Somnox's
app developer, backend developer, and CRA consultant to make the guarantees
hold from cloud to phone to device, backed by a maintained threat analysis
and traceable mitigations
- A secure, cloud-integrated factory flasher: a provisioning tool that gives every device its own cryptographic identity, with key material protected throughout the process and central control over every flasher station.
- Breathing detection from motion alone: algorithm development with Somnox's team to detect a sleeper's breathing from IMU readings, reliable enough to run all night on both products, with data logging infrastructure that streams breathing data to the app so users can see their own breathing visualised.
- Breathing guidance that meets you, then leads you, the device
first synchronises to the user's own breathing rate, then gently slows
that rhythm toward the deep, slow rate associated with relaxation and
sleep onset. Field-deployed and trusted by users today
ESP32-S3 · FreeRTOS · C++23 · BLE
5.0 / NimBLE · Secure Boot · Flash encryption
· OTA updates · EU CRA ·
Secure factory provisioning