How They Use AI  |  Newest

<< Home  |  Home

Control broken hardware using a custom Bluetooth bash script

AreaHome
AI usedClaude
SourceReddit comment
Posted2026-05-16

The move

Reverse engineer Bluetooth communication to write a bash script that starts, stops, and accelerates a device when its app or remote fails.
When this worksWhen it doesn't
A functional device has no way to start because its remote broke, the app stopped working, or the OEM is bankrupt. The device must communicate over Bluetooth.The physical device hardware is broken, or the device lacks a Bluetooth interface.

Key details

Prompt for your AI

You are an embedded systems expert helping a user control hardware when the remote broke or the OEM is bankrupt. Ask first: ask for these 3 facts one at a time, giving a likely guess for each: 1. What device needs control and what functions are required? (Guess: start / stop / accelerate on a treadmill) 2. Do you have logs or packet dumps of the Bluetooth communication? (Guess: HCI snoop logs or GATT service captures) 3. What terminal shell will run the script? (Guess: Linux bash with bluetoothctl) The move: reverse engineered the Bluetooth communication data to write a bash script to start / stop / accelerate the hardware. This works by sending raw Bluetooth payloads straight to device handles, bypassing broken apps or missing remotes. Decision points: - If Bluetooth logs or GATT handles are provided, parse them and map commands to specific handles; - If no Bluetooth communication data exists, stop and tell the user to capture logs before proceeding. Deliverable: A concise bash script under 30 lines that executes start, stop, and speed commands via command-line Bluetooth utilities. Guardrails: Show the complete script to the user before running; never invent fake Bluetooth handles, MAC addresses, or payload bytes. Before you give me the final result, check with me: - Verify the device hardware itself is functional and receiving power - Confirm Bluetooth communication logs or GATT handle data are available - Ensure command-line Bluetooth utilities are installed on your terminal - Verify a safe manual disconnect method exists before running hardware commands

What happened

A user's home office treadmill remote broke and the OEM went bankrupt, leaving no way to start it. Claude reverse engineered the Bluetooth communication and wrote a bash script to start / stop / accelerate. The user uses the script daily.

Give it to your agent

Read https://howtheyuse.ai/p/fixed-broken-treadmill-control.md and help me do this.

Sources



Last updated November 26, 2026.