# Case study: floor-heating controller app over BLE · Alex Mitrovic
URL: https://alexmitrovic.com/work/floor-heating-controller
Last updated: 2026-11-30

> An Android app for a water-based floor-heating controller: custom BLE protocol, OTA firmware updates, optimized file transfer, reconnection and a USB fallback.

Smart home · Android

# Floor-heating controller app

An Android app to configure and control a water-based floor-heating controller that is part of a larger smart-home system.

- **Client:** Smart-home manufacturer (NDA)

- **Role:** Android developer

- **Platform:** Android, BLE, USB

- **Highlights:** OTA, file transfer, USB fallback

[Image: A wall-mounted heating controller above a stone floor, a phone on a side table]**Wall controller****App****Heated floor**

In short

## What did I build?

I built the Android app that configures and controls a water-based floor-heating controller over BLE: a custom protocol, OTA firmware updates, optimized BLE file transfer, automatic reconnection and a USB fallback channel.

AndroidBLECustom protocolOTAUSB hostQR onboarding

Screenshot or device photo, if allowed

## Problem

The controller was configured and updated from a phone. Firmware updates and configuration files had to arrive intact every time, and the app had to recover from dropped links on its own.

Check this framing matches the real project, and add the specific challenge you remember most.

## Approach

- Implemented the device's custom communication protocol on top of BLE.
- Built OTA firmware updates and an optimized BLE file transfer.
- Designed a robust reconnection system for unstable links.
- Added a custom USB communication layer as a second channel to the device.
- QR-code onboarding, PDF report generation and translations loaded from the cloud at runtime.

Under the hood

## What it took

Two links to the same device means two sources of truth unless you design against it. The app treats BLE and USB as interchangeable transports under one protocol layer, so the rest of the app doesn't care which one is connected.

For file transfer and OTA, throughput comes from MTU, write type and connection interval working together; the [throughput calculator](https://alexmitrovic.com/tools/ble-throughput-calculator) shows the trade-offs. Add what you tuned and by how much, if you can share it.

## Result

Add what you can share, e.g. "file transfer X× faster after MTU and write-type tuning", "OTA success rate X%", number of installations.

## Related

[**Phone sends****Device writes****Resumes after a drop** Service### OTA firmware updatesFirmware updates from your Android and iOS app that finish every time: resumable, verified and fast, with Nordic DFU, MCUboot or your own protocol.](https://alexmitrovic.com/services/ota-firmware-updates)

[**Thermostat****App** Industry### Smart home & HVAC appsAndroid and iOS apps for smart thermostats, floor heating and HVAC devices: BLE setup, Wi-Fi and cloud control, OTA and one reliable device state.](https://alexmitrovic.com/for/smart-home)

[Article### Why BLE firmware updates fail (OTA and DFU), and how to make them finishWhy BLE OTA and DFU updates fail from Android and iOS apps: drops mid-transfer, slow writes, background kills, bootloaders, and the fix for each.](https://alexmitrovic.com/blog/ble-ota-firmware-update-fails)

## Similar problem on your device?

Tell me what's breaking. No pitch deck needed.

[Book a free call](https://alexmitrovic.com/contact)

Free · NDA on request · reply within 1–2 working days
