Non-wearable sleep tracker allows to gain insights into sleep metrics, including HRV, respiratory rate, and sleep staging.
INTRODUCTION
With a non-wearable sleep tracker the user places it under mattress topper or sheet and the device tracks every night automatically. Gaining insights into sleep metrics, including HRV, deep sleep, and sleep score, can help improve user's sleep and overall health.
BUSINESS OBJECTIVES
The objectives of the project set for IOMICO team by the Client were the following:
To find and fix a device’s problem with Wi-Fi connection;
To review and improve stability of the existing firmware;
Change the operating logic of the device's LED indication.
BUSINESS PROBLEM/OPPORTUNITY
APPROACH
iomico team reviewed and analyzed the existing device’s firmware and PCB design and created a report. The report contained a list of possible problems with both firmware and hardware parts of the device and suggestions for the problem solving.
The customer approved the work to improve the firmware. The next solutions were implemented:
Error handlers and restart logic for unpredictable and critical situations;
Fixed unsafe dynamic memory allocation implementations in the firmware;
Increased Keep alive interval for MQTT connection;
Improved MQTT connection logic on connection issues. The device now detects connection problems and tries to re-establish connection using different techniques from reconnection up to full device restart;
Changed the operating logic of the device's LED indication;
TECHNICAL DETAILS
The device is built on the ESP32 module with ESP-IDF framework. The ESP32 uses WiFi to communicate with the server over MQTT and BLE connection for the initial device setup (BlueFi). The device collects ADC data from an external pad that the user places on the sleeping area.
RESULTS
The customer tested implemented changes and left positive feedback.
LESSONS LEARNED
A structured and systematic approach to the device testing and documentation creation helped to solve the tasks and satisfy the customer’s needs;
CONCLUSION
The team demonstrated to the customer their ability to solve problems and to work with complex projects.
Complex review with PCB testing was a better approach to schedule the next version of the device development.
Our services
Embedded Software Development
Industry
Healthcare
Technology
C/C++, AWS IoT, OTA
Team
Project Manager
Firmware Developer