Two machines, no apps

A rower and an elliptical with working Bluetooth and no usable apps. The plan: figure out what they say, and build one web app for both.

Moss gradient with a house with connected devices and a notebook and pen, and the text Two machines, no apps BLE
Contents

I have a rower and an elliptical at home. Both work fine mechanically. Both have a little Bluetooth logo on the console. And neither one has an app I can actually use anymore.

The rower is a MyCloudFitness (MCF) console. The official Android app still exists in a couple of versions (a 3.0.2 from 2021 and a newer “MCF+Thrivified” build), but the first you can’t login to anymore, and the later on is riddled with ads and very slimmed down without a subscription. I don’t want anything the subscriptions give me as well, I don’t want to watch a video of someone else sweating. The elliptical is an Exerpeutic 1318, and its app was an old iPad app I can’t even remember the name of. I don’t have that iPad anymore, and I’m not buying one to find out.

So the plan was simple, at least on paper: figure out what these consoles say over Bluetooth, then write one small web app that talks to both of them. No accounts, no cloud, just my phone propped up on the machine showing me what I want to see.

This is the first post in a short series about how that went. Spoiler: one of the machines was easy, the other one made me pretend to be an iPad.

The series

  1. Two machines, no apps (this post)
  2. Reverse engineering the rower: Nordic UART and a 20-byte gotcha
  3. Pretending to be an iPad: the elliptical
  4. Building the app: Vue 3, Web Bluetooth and capability-driven drivers
  5. Programs that work on both machines
  6. Honest numbers: calories, weight, and not making things up

Tooling

I did all the early poking from my Linux laptop with Python and bleak, which is a really nice cross-platform BLE library. The whole setup is a venv and one dependency:

cd ble-tools
python -m venv .venv
source .venv/bin/activate
pip install "bleak>=3.1"

Everything I wrote during this phase is a throwaway script in a ble-tools/ folder: a scanner, a generic probe that dumps the GATT table and logs every notification to CSV, and later one script per protocol. None of it is pretty, but having small, single-purpose scripts made it really easy to try an idea, look at the bytes and throw it away.

Step one: who’s even advertising?

Fitness consoles usually sleep until you start moving, so the first script just scans for 20 seconds while I row or pedal, and flags anything advertising a service UUID I recognize. FTMS (the standard Fitness Machine Service) would have been the dream. A few vendor UARTs show up a lot on cheap consoles, so they’re in the list too.

KNOWN = {
    "00001826-0000-1000-8000-00805f9b34fb": "FTMS",
    "00001816-0000-1000-8000-00805f9b34fb": "Cycling Speed/Cadence",
    "00001818-0000-1000-8000-00805f9b34fb": "Cycling Power",
    "0000180d-0000-1000-8000-00805f9b34fb": "Heart Rate",
    "00001814-0000-1000-8000-00805f9b34fb": "Running Speed/Cadence",
    "ce060000-43e5-11e4-916c-0800200c9a66": "Concept2 PM5",
    "0000fff0-0000-1000-8000-00805f9b34fb": "FFF0 (generic UART, common on cheap consoles)",
    "0000ffe0-0000-1000-8000-00805f9b34fb": "FFE0 (HM-10 style UART)",
    "6e400001-b5a3-f393-e0a9-e50e24dcca9e": "Nordic UART",
    "49535343-fe7d-4ae5-8fa9-9fafd205e455": "Microchip/ISSC UART",
}


async def main(seconds: float) -> None:
    print(f"Scanning {seconds:.0f}s... start pedaling/rowing now to wake the consoles.\n")
    found = await BleakScanner.discover(timeout=seconds, return_adv=True)
    rows = sorted(found.values(), key=lambda da: da[1].rssi, reverse=True)
    for dev, adv in rows:
        name = adv.local_name or dev.name or "?"
        tags = [KNOWN[u.lower()] for u in adv.service_uuids if u.lower() in KNOWN]
        flag = " <== " + ", ".join(tags) if tags else ""
        print(f"{dev.address}  rssi={adv.rssi:>4}  {name}{flag}")

The rower: easy mode

The rower showed up right away:

XX:XX:XX:XX:XX:XX  rssi= -58  MCF-0000000000 <== Nordic UART
    svc  6e400001-b5a3-f393-e0a9-e50e24dcca9e

Two things jumped out. First, the name is MCF-0000000000, and from what I’ve seen every MCF console uses that exact name, so you can’t use it to tell one machine from another. Matching on the name prefix plus the service UUID is the way to go. Second, it’s the Nordic UART Service: one characteristic you write to, one that sends you notifications. That’s not a fitness standard, it’s just a serial port over BLE. Good news and bad news. Good, because it means there’s a simple byte protocol underneath. Bad, because nothing tells you what that protocol is.

The next script, probe.py, connects, dumps every service and characteristic, subscribes to everything that notifies and logs it to CSV. You can hit Enter while it runs to drop a marker row in the log, which turned out to be super handy for lining up “I just changed something” with “these bytes changed”.

def on_enter():
    sys.stdin.readline()
    t = time.monotonic() - t0
    w.writerow([f"{t:.3f}", "MARKER", 0, ""])
    print(f"{t:8.3f}  ---- MARKER ----")

if sys.stdin.isatty():
    loop.add_reader(sys.stdin, on_enter)

It connected fine, it subscribed fine, and then… nothing. Not a single notification, no matter how hard I rowed. The console wants to be talked to first. That’s the next post.

The elliptical: where is it?

The elliptical didn’t show up in the BLE scan at all. Not with a weird name, not as an unknown device, nothing. I pedaled, restarted the scan, moved the laptop closer. Still nothing.

That’s because it isn’t BLE. It’s classic Bluetooth, the old-school kind your car stereo uses. A regular classic scan found it right away, and an SDP browse showed what it offers:

Device:  1318-573
Address: 8C:DE:52:XX:XX:XX   (OUI: ISSC / Microchip)
Class:   0x240404

Service Name: SerialPort
  RFCOMM channel: 6
Service Name: Wireless iAP
  RFCOMM channel: 3
  UUID: 00000000-deca-fade-deca-deafdecacaff

A plain serial port on channel 6 looked like the obvious way in. It wasn’t. That “Wireless iAP” entry on channel 3 is Apple’s accessory protocol, and it ended up being the only door that actually opened. That’s post 3.

This was also the moment I realized the “one web app” plan had a hole in it. Web Bluetooth in Chrome only speaks BLE. A browser can’t open an RFCOMM socket to a classic Bluetooth device, period. I decided to not worry about that yet: figure out the protocol first, then figure out how to get it into a browser.

Where this left me

After an evening of scanning I had:

  • A rower with a BLE serial port that connects and then says nothing.
  • An elliptical on classic Bluetooth with a silent serial port and an Apple accessory channel.
  • A browser that can only talk to one of them.

Not a bad starting point honestly. Next up, getting the rower to talk.