{
  "api_version": "1.0.0",
  "slug": "cat-printer-ble-chatgpt",
  "url": "https://reversedwithai.com/p/cat-printer-ble-chatgpt",
  "markdown_url": "https://reversedwithai.com/p/cat-printer-ble-chatgpt.md",
  "json_url": "https://reversedwithai.com/p/cat-printer-ble-chatgpt.json",
  "title": "Reverse engineered a Bluetooth cat-shaped thermal printer with ChatGPT's help",
  "tagline": "No Bluetooth background, a cat-shaped printer, and dithered images printing.",
  "summary": "Captured the Fun Print app's Bluetooth traffic with Apple's PacketLogger, worked out the command and 48-byte line format with ChatGPT, and printed dithered images from custom CoreBluetooth code.",
  "target": {
    "name": "Cat-shaped BLE thermal printer",
    "type": "firmware",
    "type_label": "Firmware and hardware"
  },
  "platform": "macOS / BLE",
  "models": [
    "ChatGPT"
  ],
  "tools": [
    "PacketLogger",
    "CoreBluetooth"
  ],
  "outcome": "partial",
  "outcome_label": "Partial",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "Mertol Kasanan",
    "url": null
  },
  "sources": {
    "repository": null,
    "writeup": "https://mertol.substack.com/p/reverse-engineering-a-cat-printer",
    "discussions": [],
    "all": [
      "https://mertol.substack.com/p/reverse-engineering-a-cat-printer"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/cat-printer-ble-chatgpt.webp",
    "credit": "Image: mertol.substack.com"
  },
  "commit_history": null,
  "added_at": "2026-10-14T00:00:38+00:00",
  "updated_at": "2026-10-14T00:00:38+00:00",
  "sources_reviewed_at": "2026-10-14T00:00:38+00:00",
  "reviewed_by": "editor",
  "human_notes": "The author had no Bluetooth background and relied on the LLM for explanations and code. ChatGPT suggested Wireshark or sniffing hardware, which the author calls bad advice. Grayscale printing was left for a part 2.",
  "reproduce": null,
  "body_md": "Mertol Kasanan reverse engineered a cheap cat-shaped Bluetooth thermal printer that only works with the vendor's Fun Print app. With ChatGPT explaining Bluetooth and writing code, Kasanan captured the app's traffic with Apple's PacketLogger, decoded the commands and line format, and printed dithered images from custom CoreBluetooth code.\n\nExisting open-source libraries did not support the printer's hardware version, and Kasanan had no Bluetooth background. Kasanan installed Apple's Bluetooth logging profile on an iPhone and used PacketLogger to record the traffic between Fun Print and the printer, then read through the HCI, L2CAP and ATT layers, where the printer commands sit. ChatGPT helped build a CoreBluetooth class to scan, connect and discover characteristics, and Kasanan replayed the captured commands while changing values to see what happened.\n\nKasanan found a header command that changes with the print length and a darkness command with values from 1 to 100. Sending 384 values per line produced a garbled, sliding pattern. Trial and error showed that 48 values per line worked. Since 384 divided by 48 is 8, each byte packs eight 1-bit pixels. The image pipeline converts to grayscale, resizes, dithers, splits into lines and packs the bits.\n\nThe code sends dithered images over Bluetooth, and with proper flow control it can print long images until the roll runs out. ChatGPT had suggested Wireshark or dedicated sniffing hardware, which Kasanan calls bad advice because PacketLogger was simpler and free. The app's HD mode, which prints true gray tones, uses a different encoding and was left for a part 2.",
  "ai_use_excerpts": null
}
