FTMS Sim support
FTMS Sim turns an iPhone or iPad into a Bluetooth LE fitness machine so you can build and test fitness apps without real equipment.
Contact: hey-ho@atropical.no. Include your device model, iOS version, the machine and options selected, and what your app sees. A screenshot of the app’s log helps.
Getting started
- Open FTMS Sim and allow Bluetooth when asked.
- Pick a machine by tapping its name under the title.
- The top-right status reads waiting for connection: the device is advertising.
- Connect from your app or browser. The status turns to connected once your app subscribes to a characteristic.
- Press start. Data is sent once per second; the packet view shows the exact bytes.
FTMS Sim only works while it is open and in the foreground. The screen stays awake while running.
Connecting from Chrome (Web Bluetooth)
const device = await navigator.bluetooth.requestDevice({
filters: [{ services: [0x1826] }], // Fitness Machine
optionalServices: [0x180d], // Heart Rate, if enabled
});
const server = await device.gatt.connect();
const ftms = await server.getPrimaryService(0x1826);
const data = await ftms.getCharacteristic(0x2ad1); // Rower Data
data.addEventListener('characteristicvaluechanged', e => console.log(new Uint8Array(e.target.value.buffer)));
await data.startNotifications();
Data characteristics by machine: rower and ski 0x2AD1, indoor bike 0x2AD2, treadmill 0x2ACD, cross trainer 0x2ACE, step climber 0x2ACF, stair climber 0x2AD0. Remember to list every service you read in filters or optionalServices; Chrome blocks the rest.
Troubleshooting
The device does not appear in the scan.
- Check that the status shows waiting for connection. If it shows no permission, enable Bluetooth for FTMS Sim in Settings → Privacy & Security → Bluetooth.
- Keep the app in the foreground; iOS stops advertising in the background.
- Filter on the service, not the name. iOS may shorten long names in the advertisement.
- On a Mac, turn Bluetooth off and on, or reload the page. Browsers cache devices.
It connects but no data arrives.
- Press start. While paused, live values are zero but packets still flow; if nothing flows, check that your app called
startNotifications(). - The log lists every subscription. If yours is missing, the subscription did not reach the device.
My app expects a specific device name.
- Set it in Options → device name and press return. The app restarts advertising with the new name.
Values look odd.
- Turn off noise for exact slider values.
- Pace and speed for rower and ski follow power (P = 2.8·v³), so move the power slider.
Switching machine or options disconnects my app.
- Expected: each change rebuilds the Bluetooth services, as a different physical device would. Reconnect after switching.
What is simulated
- Fitness Machine Service 0x1826: data characteristic for the selected machine, Feature, Training Status, Control Point (request control, start, stop/pause, reset).
- Heart Rate 0x180D, Cycling Power 0x1818, Cycling Speed and Cadence 0x1816, Running Speed and Cadence 0x1814.
- Erg monitor and smart pulley roller protocols for compatibility testing.
FTMS Sim is a testing tool. Simulated values are not measurements and must not be used for health, training or safety decisions.